You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The new Upsell Button Component from Introduce UpsellButton component #750 works as expected in chrome, but not in firefox and safari. Here the focus style is not applied (the blue box). The active and hover styles are applied correctly though.
Also the offset seems a bit off (in all browsers): it's not completely centered. The middle is 0,78 cm from the bottom and 0,90 cm from the top. This is not the case in the other upsell buttons (the css buttons in the plugin or on yoast.com).
See image.
Please describe what you expected to happen and why.
-Expect the focus style to be applied in safari and firefox.
-Expect the text of the button to be vertically centered.
How can we reproduce this behavior?
Open the standalone app -> see the styling (in different browsers).
Technical info
yoast-components version: 4.13
The text was updated successfully, but these errors were encountered:
works as expected in chrome, but not in firefox and safari. Here the focus style is not applied (the blue box)
Worth reminding at the moment this button doesn't have a focus style specified via CSS. This happens for other yoast-components buttons too: they don't have a focus style set via CSS. Therefore, browsers use their own native focus style, which varies depending on the browser and the operating system.
This:
is the native focus style Chrome and Opera use on macOS. On Windows, Chrome applies a different native focus style:
Edge and IE11 use the classical dotted outline:
Firefox seems to have problems with this button and doesn't show any native focus style. On standard buttons, this is how it looks:
The native focus styles have also changed during history. 🙂Previous browsers versions used different styles, and they will probably change again in the future. If we want to have a consistent styling across browsers and operating systems, there's the need to craft a CSS rule that works consistently everywhere. In the plugin, the upsell button uses the following:
Please give us a description of what happened.
The new Upsell Button Component from Introduce UpsellButton component #750 works as expected in chrome, but not in firefox and safari. Here the focus style is not applied (the blue box). The active and hover styles are applied correctly though.
Also the offset seems a bit off (in all browsers): it's not completely centered. The middle is 0,78 cm from the bottom and 0,90 cm from the top. This is not the case in the other upsell buttons (the css buttons in the plugin or on yoast.com).
See image.
Please describe what you expected to happen and why.
-Expect the focus style to be applied in safari and firefox.
-Expect the text of the button to be vertically centered.
How can we reproduce this behavior?
Technical info
The text was updated successfully, but these errors were encountered: