-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Remove legacy "checkbox" settings option #29282
base: develop
Are you sure you want to change the base?
Conversation
d6a0a18
to
7935cfb
Compare
7935cfb
to
920f2bd
Compare
c0fca5f
to
9f90f47
Compare
9f90f47
to
b4c926f
Compare
// XXX: once design replaces all toggles make this the default | ||
useCheckbox?: boolean; |
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.
This seems to suggest moving everything from toggles to checkboxes, what changed?
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.
I get the feeling this was a choice made a quite a few design iterations ago. I'm assuming since the only bit of settings to ever use checkboxes was the author's own appearance settings. it wasn't ever expanded to the rest of the components.
If the plan is to still change over to checkboxes, we can check with design. However going one way or the other would reduce some overhead here.
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.
Compound specifically supports both checkboxes and toggles so we should definitely query design which we should favour for what. @element-hq/design
Based on #29280 (will adjust base branch once merged)
Split out from #29272
This removes a chunk of legacy code which used
forceTooltipVisible
to show some help text for a setting. This was only used by the identity server picker (#29280) and the font family setting. By making the font family setting use the toggle fields instead, this allows for a large chunk of code to be removed (and uses a more standard description field below an input, rather than a tooltip).See diff
Checklist
public
/exported
symbols have accurate TSDoc documentation.