-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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(web-components): fix disabled button styles #31585
fix(web-components): fix disabled button styles #31585
Conversation
📊 Bundle size report✅ No changes found |
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. |
change/@fluentui-web-components-3a27963c-2795-4898-8b1e-adeb72be5c72.json
Show resolved
Hide resolved
05baa54
to
2884fe7
Compare
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. |
/azp run |
Azure Pipelines successfully started running 4 pipeline(s). |
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. |
Co-authored-by: Chris Holt <[email protected]>
Previous Behavior
[disabled][appearance="subtle"]
fluent-buttons where they are expected to not have a background or outline when disabled, but actually were showing a background and outline.setContent
.focusabale
" typo in button styles:focus-visible
not working in High Contrast ModeNew Behavior
[disabled]
styles cascade correctly.focusabale
typo)
char from:focus-visible
styles to fix high-contrast mode focus states.setTheme
to prevent them being wiped out bypage.setContent
CSS.registerProperty
with a fallback to current method for current versions of Firefox and older browsers.The
CSS.registerProperty
change is probably significant enough to heavily scrutinize this PR. It's pretty naive at the moment, just applying aninitialValue
. In the future I think we'd want to set actual CSSOM types (integer, pixel values, etc).Look forward to feedback.
Related Issue(s)
Screenshots