Foundry-UI is a React UI Library built which prioritizes theming, accessibility, and performance. Fully typed with TypeScript, animated by react-spring, themed with styled-components, and made accessible by polished and jest-axe.
Apache License 2.0
16
stars
43
forks
source link
Button | Change -webkit-appearance to none to fix button anchors on Safari #405
For buttons with the as prop for the container changing it from a button to an a, keeps the role as button as expected, but safari forces button appearance to the anchor because of that role.
Fix is to set -webkit-appearance: none; on all button containers (we'll always want our styles)
For buttons with the
as
prop for the container changing it from abutton
to ana
, keeps the role asbutton
as expected, but safari forces button appearance to the anchor because of that role.Fix is to set
-webkit-appearance: none;
on all button containers (we'll always want our styles)Safari:
Chrome