Skip to content

Fix inconsistencies with disabled form elements - #86

Open
tribut wants to merge 3 commits into
alvaromontoro:masterfrom
tribut:fix-disabled
Open

Fix inconsistencies with disabled form elements#86
tribut wants to merge 3 commits into
alvaromontoro:masterfrom
tribut:fix-disabled

Conversation

@tribut

@tribut tribut commented Jul 21, 2023

Copy link
Copy Markdown

almond-fix-disabled

This PR fixes three things I found odd with how disabled form elements are rendered:

  • Icons were hidden (due to the background color being set using background, which overwrote background-image as well)
  • Checked radio controls and checkboxes were indistinguishable from unchecked ones
  • The background color for select elements was inconsistent

I've added some notes in the actual commits, if you want me to squash it into one commit or include the changes to dist/, please let me know.

tribut added 3 commits July 21, 2023 09:29
background would also overwrite background-image, hiding the icons when
the inputs where disabled.
Without this, it is impossible to tell checked and unchecked controls
apart when they are disabled.
The missing :not(:disabled) meant that the background color did not
match with other controls in disabled state.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant