-
Notifications
You must be signed in to change notification settings - Fork 253
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
feat(ui5-checkbox): add displayOnly mode #8111
Conversation
} | ||
|
||
get displayOnlyIcon() { | ||
if (this.isCompletelyChecked) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the quick reaction. I think we only import the "@ui5/webcomponents-icons/dist/accept.js"; icon.
Do we need more icons imports - complete, tri-state, border.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I forgot to add them. Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The newly added display only type doesn't appear good on darker themes (dark and hcb).
It should be brighter.
@@ -40,6 +40,7 @@ | |||
<ui5-title>Change Event Test</ui5-title> | |||
<ui5-checkbox id="cb1" text="Long long long text"></ui5-checkbox> | |||
<ui5-checkbox id="cb2" disabled></ui5-checkbox> | |||
<ui5-checkbox id="displayOnlyCb" display-only></ui5-checkbox> | |||
<ui5-input id="field"></ui5-input> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we add all of its variants for easier theme checking like this
<ui5-checkbox display-only checked></ui5-checkbox>
<ui5-checkbox display-only indeterminate checked></ui5-checkbox>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That makes sense, Thanks!
Fixed, thanks for catching that. |
* feat(ui5-checkbox): add displayOnly mode * chore: import icons * fix: icon color in dark themes and add more examples
* feat(ui5-checkbox): add displayOnly mode * chore: import icons * fix: icon color in dark themes and add more examples
* feat(ui5-checkbox): add displayOnly mode * chore: import icons * fix: icon color in dark themes and add more examples
Closes: #7911