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

Remove legacy "checkbox" settings option #29282

Open
wants to merge 13 commits into
base: develop
Choose a base branch
from

Conversation

Half-Shot
Copy link
Member

@Half-Shot Half-Shot commented Feb 17, 2025

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

  • Tests written for new code (and old code if feasible).
  • New or updated public/exported symbols have accurate TSDoc documentation.
  • Linter and other CI checks pass.
  • I have licensed the changes to Element by completing the Contributor License Agreement (CLA)

@Half-Shot Half-Shot marked this pull request as ready for review February 25, 2025 16:08
Comment on lines -27 to -28
// XXX: once design replaces all toggles make this the default
useCheckbox?: boolean;
Copy link
Member

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?

Copy link
Member Author

@Half-Shot Half-Shot Feb 25, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

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.

Copy link
Member

@t3chguy t3chguy Feb 25, 2025

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-Task Tasks for the team like planning
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants