This topic contains 2 replies, has 2 voices, and was last updated by Anonymous 2 years, 9 months ago.
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic.
HTML Elements › Forums › Forms & Editors › Buttons › How to change the text color
This topic contains 2 replies, has 2 voices, and was last updated by Anonymous 2 years, 9 months ago.
Hi,
I want to ask you for “Button”. I read in the API and I found property “type” but it doesn’t look to change the style.
My requerments is to create blue (“#55719e”) rounded button. Is this possible with the properties?
I try with “background-color” but now I cannot change the text color. How can I do this?
My code is like this:
<smart-button style="width: 55px; height: 55px; border-radius: 50%; background-color: #55719e; color: white;" id="update">Update</smart-button>
Thanks,
–Aleksandar Laskin
Hi Aleksandar,
If you want to change button’s background color and color, please, set the following CSS variables:
--smart-background-color: #55719e;
--smart-color: white;
More information about button’s CSS styling can be found here:
https://www.htmlelements.com/docs/button-css/
Best Regards,
Ivailo
SmartElements Team
http://www.htmlelements.com
Hi Ivailo,
Maybe I will spend more time to search how to make this style change. This doc is very useful! Thanks!
Now I have another question. Can I make it this with some toggle button or something? Becouse I want to change text of the button of in one case and in another to be different.
–Aleksandar Laskin
You must be logged in to reply to this topic.