Skip to content

Commit

Permalink
Merge branch 'fix/WEB-2727-whiteboard-layout' of https://github.com/1…
Browse files Browse the repository at this point in the history
…00mslive/web-sdks into fix/WEB-2727-whiteboard-layout
  • Loading branch information
eswarclynn committed Mar 19, 2024
2 parents c92be83 + ffe287f commit 40eb041
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 24 deletions.
9 changes: 2 additions & 7 deletions packages/roomkit-react/src/IconButton/IconButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,14 @@ export const IconButton = styled('button', {
'&[disabled]': {
opacity: 0.5,
cursor: 'not-allowed',
backgroundColor: '$secondary_dim',
color: '$on_primary_high',
},
'&:focus': {
outline: 'none',
},
variants: {
active: {
false: {
backgroundColor: '$secondary_dim',
color: '$on_primary_high',
'&:not([disabled]):hover': {
backgroundColor: '$secondary_default',
},
},
true: {
'&:not([disabled]):hover': {
backgroundColor: '$on_surface_low',
Expand Down
16 changes: 6 additions & 10 deletions packages/roomkit-react/src/Prebuilt/IconButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,18 @@ const IconButton = styled(BaseIconButton, {
border: '1px solid $border_bright',
bg: '$background_dim',
r: '$1',
'&[disabled]': {
opacity: 0.5,
cursor: 'not-allowed',
backgroundColor: '$secondary_dim',
color: '$on_primary_high',
},
variants: {
active: {
true: {
color: '$on_surface_high',
backgroundColor: 'transparent',
},
false: {
border: '1px solid transparent',
color: '$on_primary_high',
},
},
disabled: {
true: {
backgroundColor: '$surface_brighter',
color: '$on_surface_low',
},
},
},
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ const IconSection = styled(IconButton, {
p: '$4',
r: '$1',
bg: 'transparent',
borderTopRightRadius: 0,
borderTopRightRadius: '0 !important',
borderColor: '$border_bright',
borderBottomRightRadius: 0,
borderBottomRightRadius: '0 !important',
position: 'relative',
'&:not([disabled]):focus-visible': {
zIndex: 1,
Expand All @@ -41,8 +41,8 @@ const IconSection = styled(IconButton, {
...variants,
hideOptions: {
true: {
borderTopRightRadius: '$1',
borderBottomRightRadius: '$1',
borderTopRightRadius: '$1 !important',
borderBottomRightRadius: '$1 !important',
},
},
},
Expand All @@ -53,10 +53,10 @@ const OptionsSection = styled(IconButton, {
h: '$14',
p: '$4 $2',
r: '$1',
borderTopLeftRadius: 0,
borderTopLeftRadius: '0 !important',
borderColor: '$border_bright',
borderBottomLeftRadius: 0,
borderLeftWidth: 0,
borderBottomLeftRadius: '0 !important',
borderLeftWidth: '0 !important',
position: 'relative',
'&:not([disabled]):focus-visible': {
zIndex: 1,
Expand Down

0 comments on commit 40eb041

Please sign in to comment.