Skip to content

Commit

Permalink
fix: set height to 25vh and overflow to auto for select box and menu (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
benediktgrether committed Dec 2, 2022
1 parent c32e686 commit 9f12ffe
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .changeset/cool-knives-rhyme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@marigold/theme-b2b": patch
"@marigold/theme-core": patch
"@marigold/theme-unicorn": patch
---

fix: set height to 25vh and overflow to auto for select box and menu
2 changes: 2 additions & 0 deletions themes/theme-b2b/src/components/ListBox.style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ export const ListBox: Theme['components']['ListBox'] = {
border: '1px solid',
borderColor: 'gray40',
borderRadius: 'small',
height: '25vh',
overflow: 'hidden auto',

'&:error': {
borderColor: 'error',
Expand Down
2 changes: 2 additions & 0 deletions themes/theme-b2b/src/components/Menu.style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ export const Menu: Theme['components']['Menu'] = {
border: '1px solid',
borderColor: 'gray40',
borderRadius: 'small',
height: '25vh',
overflow: 'hidden auto',
},
item: {
px: 'small',
Expand Down
3 changes: 3 additions & 0 deletions themes/theme-core/src/components/ListBox.style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ export const ListBox: Theme['components']['ListBox'] = {
borderBottomLeftRadius: '2px',
borderColor: '#aaa',

height: '25vh',
overflow: 'hidden auto',

'&:error': {
background: 'gray00',
borderTop: 'none',
Expand Down
3 changes: 3 additions & 0 deletions themes/theme-core/src/components/Menu.style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ export const Menu: Theme['components']['Menu'] = {
border: '1px solid',
borderColor: 'gray40',
borderRadius: 'small',

height: '25vh',
overflow: 'hidden auto',
},
item: {
fontSize: 'xxsmall',
Expand Down
3 changes: 3 additions & 0 deletions themes/theme-unicorn/src/components/ListBox.style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ export const ListBox: Theme['components']['ListBox'] = {
borderColor: 'gray40',
borderRadius: 'small',

height: '25vh',
overflow: 'hidden auto',

'&:error': {
borderColor: 'error',
},
Expand Down
3 changes: 3 additions & 0 deletions themes/theme-unicorn/src/components/Menu.style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ export const Menu: Theme['components']['Menu'] = {
border: '1px solid',
borderColor: 'gray40',
borderRadius: 'medium',

height: '25vh',
overflow: 'hidden auto',
},
item: {
px: 'small',
Expand Down

0 comments on commit 9f12ffe

Please sign in to comment.