Skip to content

Commit

Permalink
Merge pull request #2058 from appsparkler/patch-1
Browse files Browse the repository at this point in the history
chore: update style for core Select component
  • Loading branch information
hasparus committed Aug 8, 2022
2 parents 2971068 + af3d5dc commit 19643f3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/components/src/Select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export const Select: ForwardRef<HTMLSelectElement, SelectProps> =
display: 'block',
width: '100%',
p: 2,
paddingRight: 4,
appearance: 'none',
fontSize: 'inherit',
lineHeight: 'inherit',
Expand Down
3 changes: 3 additions & 0 deletions packages/components/test/__snapshots__/index.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -1109,6 +1109,7 @@ exports[`Select renders 1`] = `
display: block;
width: 100%;
padding: 8px;
padding-right: 32px;
-webkit-appearance: none;
-moz-appearance: none;
-ms-appearance: none;
Expand Down Expand Up @@ -1170,6 +1171,7 @@ exports[`Select renders with custom icon 1`] = `
display: block;
width: 100%;
padding: 8px;
padding-right: 32px;
-webkit-appearance: none;
-moz-appearance: none;
-ms-appearance: none;
Expand Down Expand Up @@ -1214,6 +1216,7 @@ exports[`Select renders with style props 1`] = `
display: block;
width: 100%;
padding: 8px;
padding-right: 32px;
-webkit-appearance: none;
-moz-appearance: none;
-ms-appearance: none;
Expand Down
2 changes: 1 addition & 1 deletion packages/docs/src/components/presets-demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export default function PresetsDemo() {
<span>Preset:</span>
<Select
id="theme"
sx={{ display: 'inline-flex', paddingRight: 32 }}
sx={{ display: 'inline-flex' }}
value={theme}
onChange={(e) => {
setTheme(e.target.value)
Expand Down

0 comments on commit 19643f3

Please sign in to comment.