Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix inconsistencies with disabled form elements #86

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

tribut
Copy link

@tribut tribut commented Jul 21, 2023

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.

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