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

Replace checkbox with switch in shortcuts tile name on/off #5009

Merged
merged 2 commits into from
Jan 26, 2025

Conversation

jpelgrom
Copy link
Member

Summary

In the settings screen for the shortcuts tile, replace the checkbox with a switch for the option to show names on the tile. A switch is the correct control here instead of a checkbox, because it is a standalone (and the only) option and not something to select in a list. See the Material guidelines: https://m3.material.io/components/switch/guidelines#6add393e-e4e8-41b6-862b-5ebffb894f72.

This PR also removes the checkbox button colors function because this was the last usage of it.

Screenshots

image
(the preview doesn't render the icon correctly, but that doesn't matter here)

Link to pull request in Documentation repository

n/a

Any other notes

@dshokouhi dshokouhi merged commit 4e8702f into home-assistant:master Jan 26, 2025
4 checks passed
@jpelgrom jpelgrom deleted the shortcuts-tile-toggle branch January 26, 2025 07:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants