Button with Link Styling Broken

tenspiderfingers 23 Apr, 2022
"Color" interface is not working when button have "Link". As seen in the screenshot, the html code has class="blue ui button" but display shows a shading gray color.

Button with Link Styling Broken image 1
Colnem 23 Apr, 2022
Hi

I prefer do not use Behaviors/Color. So, all buttons classes are always "ui button", without blue or green

I use a View Element/Custom/Css with something like this...
.ui.button, .ui.button:active, .ui.button:focus { width:120px; color:white; border:1px solid #55bd97; background-color:#55bd97;}
.ui.button:hover {background-color:white;color:#55bd97;}


So I can choose colors that I want.

And I think that, if you use a Link and not Submit Next Page, it's better to choose button type=Button and not Submit.
tenspiderfingers 23 Apr, 2022
Thanks for the pointer.

I don't want a global change of all buttons' color and style. Is there anyway to append a class to this field so that the change will be specified? I have a hard time figuring out how to add class name. It was a feature in v6 but now I am lost without being able to do that. I am not a programmer and have very minimal coding skill.
Colnem 23 Apr, 2022
You can use Behaviors/Interface/HTML TAG Attributes
Then add an Attribute = class, Attribute value = my_class, Append

You also can add an Id:
Attribute = id, Attribute value = my_id, Append or override

So you can modify rule for only one button
#my_id.ui.button {css rules}

Another way:
Attribute = style, Attribute value = color:green;background-color=yellow;, Append

But in this case, you can't modify button:hover, button:focus, button:active
tenspiderfingers 23 Apr, 2022
Thank so much for the information.

The HTML Tag attributes do not seem to be able to override the button style if "Link" is used.

I tried overriding the class name and use css to style the button, only some attributes work, padding/margin but color/border/background-color are not working.
Colnem 24 Apr, 2022
Hi

Sure, it's working.
Use a CSS View like I said...
Do not use color, then use a Custom CSS Element:
.ui.button, .ui.button:active, .ui.button:focus { width:120px; color:white; border:1px solid #55bd97; background-color:#55bd97;}
.ui.button:hover {background-color:white;color:#55bd97;}

If its don't work, said me exactly what you want in your button link...
tenspiderfingers 24 Apr, 2022
Thanks, Colnem. It was my mistake putting the css at the wrong page. Thanks for your help!
tenspiderfingers 24 Apr, 2022
After testing again, I find the font-color works but radius and background-color does not. I used exactly your code in the css. For your clarification, this happens when the button is assigned with "Link" interface.
Colnem 24 Apr, 2022
Look at this...
​[file=https://olympe-retraite-sportive.com/form.zip]https://olympe-retraite-sportive.com/form.zip[/file]
tenspiderfingers 24 Apr, 2022
Thanks for taking the time to show me. I discover the underlining issue is that Safari does not display the custom css correctly. When I use your demo in Chrome, it shows correctly the custom color and border.

I will try adding webkit extension to see if the Safari will display the custom css.
Colnem 25 Apr, 2022
Try to add !important for each rule...
You need to login to be able to post a reply.

VPS & Email Hosting 20% discount
hostinger