Skip to content

Commit

Permalink
fix(form-builder): add workaround for safari rendering select file bu…
Browse files Browse the repository at this point in the history
…tton as native button

Fixes [ch6017]
  • Loading branch information
bjoerge committed Mar 4, 2021
1 parent b79cec2 commit b2422e9
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ const SelectButton = styled(Button)(({theme}: {theme: Theme}) => {
const border = {width: 1, color: 'var(--card-border-color)'}

return css`
//---
// Needed because normalize.css in the studio overrides this in Safari.
// Safe to remove the following line when when we no longer use normalize.css
appearance: none !important;
//----
&:not([data-disabled='true']) {
&:focus-within {
box-shadow: ${focusRingStyle({
Expand Down

2 comments on commit b2422e9

@vercel
Copy link

@vercel vercel bot commented on b2422e9 Mar 4, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

perf-studio – ./

perf-studio-git-next.sanity.build
perf-studio.sanity.build

@vercel
Copy link

@vercel vercel bot commented on b2422e9 Mar 4, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

test-studio – ./

test-studio.sanity.build
test-studio-git-next.sanity.build

Please sign in to comment.