We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug The circle/square is filled when hovering over a disabled radio button or checkbox.
To Reproduce Steps to reproduce the behavior:
Expected behavior Nothing should happen, as in Fluent React.
Desktop (please complete the following information):
Additional context You can fix it for radio buttons by adding the :disabled condition to relevant selectors.
:disabled
.hoo-radio:hover:not(:checked, :disabled) + label:after, .hoo-radio:checked + label:after { transform: scale(1); opacity: 1; }
Checkboxes are a little more tricky since there's this magic box-shadow used to implement the check icon.
box-shadow
.hoo-checkbox:not(:checked, :disabled):hover + label:after { position: absolute; top: 0.5rem; left: 0.3125rem; width: 0.125rem; height: 0.125rem; content: ""; transform: rotate(45deg); background: var(--inputIcon); background: var(--neutralSecondary); box-shadow: 2px 0 0 var(--neutralSecondary), 4px 0 0 var(--neutralSecondary), 4px -2px 0 var(--neutralSecondary), 4px -4px 0 var(--neutralSecondary), 4px -6px 0 var(--neutralSecondary), 4px -8px 0 var(--neutralSecondary); } .hoo-checkbox:not(:checked, :disabled):hover + label:after, .hoo-checkbox:checked + label:after { position: absolute; top: 0.5rem; left: 0.3125rem; width: 0.125rem; height: 0.125rem; content: ""; transform: rotate(45deg); background: var(--inputIcon); box-shadow: 2px 0 0 var(--inputIcon), 4px 0 0 var(--inputIcon), 4px -2px 0 var(--inputIcon), 4px -4px 0 var(--inputIcon), 4px -6px 0 var(--inputIcon), 4px -8px 0 var(--inputIcon); }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
The circle/square is filled when hovering over a disabled radio button or checkbox.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Nothing should happen, as in Fluent React.
Desktop (please complete the following information):
Additional context
You can fix it for radio buttons by adding the
:disabled
condition to relevant selectors.Checkboxes are a little more tricky since there's this magic
box-shadow
used to implement the check icon.The text was updated successfully, but these errors were encountered: