I’ve created a CTA button but the radius for ‘hover’ doesn’t seem to be working as it should.
I set the corner radius to 5px for both normal and hover, but when I hover the cursor over the button, the button changes from rounded to square corners. Any idea what’s going on?
Does this happen in the backend?
If so, I think this is some kind of Gutenberg behavior/limitation.
When hovering an element, it gets kind of highlighted and a blue border appears for visual indication purposes.
This border comes with a border-radius of 0 or so.
Hi, thanks, I saw that blue highlight/outline. It confused me for a bit. But it’s not that. It’s when I click outside the header, then hover over the button. Backend, yes.
How did you come to that conclusion?
Can you provide more info or a screencast?
I want to add that this outline is not an independent element, it’s an actual part of your block and it’s overriding the styles you set for your button.
In case it only happens inside the backend, I can’t imagine what else could be the issue, unless you applied some unusual custom rules.
As @Marius mentioned, when you select the block, the highlight effect (provided by Gutenberg) overrides the border styles you have provided on hover. This is a current limitation in the Site Editor that we are looking into.
The same thing will happen whenever you hover a block as the highlight styles take over.