ToggleSwitch: Theme change for icon support
See original GitHub issueDescription Mert we implemented: https://github.com/primefaces/primefaces/issues/7901
PR: https://github.com/primefaces/primefaces/pull/8322
I have a showcase example already built for you to make the necessary theme changes…
Some suggested CSS changes will be required like…
- After adding
line-height: 1.4em; text-align: center;
it’s looking somewhat better. - Obviously the text color needs to be changed in the theme and
content: ""
needs to be removed. - But in general I must say that the circle is too small to contain icons. At normal text size the icon looks cramped. I feel it needs some padding.
Issue Analytics
- State:
- Created a year ago
- Comments:12 (12 by maintainers)
Top Results From Across the Web
ToggleSwitch: On/off icon · Issue #7901 · primefaces ... - GitHub
I can do that by adding below lines to toggleswitch.css , and using primeicons. But I think this component need to be more...
Read more >How to change toggle to icon click (for switching to dark mode)
It currently has a toggle switch, which changes the layout from light to dark and vice versa. It is using the following code:...
Read more >ToggleSwitch | Dash for Python Documentation | Plotly
An example of a default toggle switch without any extra properties. ... Data Science Workspaces, which has typeahead support for Dash Component Properties....
Read more >Guidelines for toggle switch controls - Windows apps
In this article. Is this the right control? Choosing between toggle switch and check box; Recommendations; UWP and WinUI 2; Create a toggle...
Read more >CSS Dark Mode Toggle Button from scratch in 6 Minutes
Let's create a dark mode toggle switch /button from scratch in 6 minutes using only CSS!Download source code here: ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
that looks great!
Maybe this should be a new issue, but can we do a same animation as we have with speed dial?
https://www.primefaces.org/showcase/ui/button/speedDial.xhtml
See Transition Duration and Icon