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

feat(slide-toggle): Customized slide toggle for theming featuring light / dark mode icon #28977

Open
monacodelisa opened this issue Apr 29, 2024 · 0 comments
Labels
area: material/slide-toggle feature This issue represents a new feature or feature request rather than a bug or bug fix P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent

Comments

@monacodelisa
Copy link

monacodelisa commented Apr 29, 2024

Feature Description

The feature I am suggesting is to add and additional slide-toggle button option
that is already customized for theme switching control.

  • having integrated theme appropriate icons within the mdc-switch__icons
  • to replace the two SVGs that are currently within

I implemented it in one of my projects using vanilla JS and thought that it might be nice to have it as and option available

  • as a ready component within Angular Material Examples page.

here is a screenshot from my app:

Light Mode
image

Dark Mode
image

I have now implemented it on a second app too

Use Case

The slide-toggle component is often used as theme switcher,
so I think that it would be very nice to have it ready and available.

The new design makes it easy to implement.

@monacodelisa monacodelisa added feature This issue represents a new feature or feature request rather than a bug or bug fix needs triage This issue needs to be triaged by the team labels Apr 29, 2024
@crisbeto crisbeto added P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent area: material/slide-toggle and removed needs triage This issue needs to be triaged by the team labels May 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: material/slide-toggle feature This issue represents a new feature or feature request rather than a bug or bug fix P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
Projects
None yet
Development

No branches or pull requests

2 participants