-
Notifications
You must be signed in to change notification settings - Fork 166
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(fuselage): update optionTitle component styles (#790)
Co-authored-by: Douglas Fabris <[email protected]>
- Loading branch information
1 parent
5a52dc6
commit 3a2cbb3
Showing
30 changed files
with
151 additions
and
149 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
128 changes: 128 additions & 0 deletions
128
packages/fuselage/src/components/Option/Option.styles.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,128 @@ | ||
@use '../../styles/colors.scss'; | ||
@use '../../styles/lengths.scss'; | ||
@use '../../styles/typography.scss'; | ||
|
||
$variants: ( | ||
'success': colors.success(700), | ||
'danger': colors.danger(700), | ||
'warning': colors.warning(700), | ||
'primary': colors.primary(700), | ||
); | ||
|
||
%column { | ||
flex: 0 0 auto; | ||
|
||
margin-inline: lengths.margin(2); | ||
} | ||
|
||
.rcx-option { | ||
@include clickable; | ||
@include typography.use-font-scale(p2); | ||
|
||
padding: lengths.padding(4) lengths.padding(16); | ||
|
||
list-style: none; | ||
|
||
color: colors.font(default); | ||
|
||
&__title { | ||
@include typography.use-font-scale(c1); | ||
|
||
padding-block-start: lengths.padding(8); | ||
padding-block-end: lengths.padding(4); | ||
padding-inline: lengths.padding(16); | ||
|
||
color: colors.font(default); | ||
} | ||
|
||
&__wrapper { | ||
display: flex; | ||
align-items: center; | ||
|
||
margin-inline: lengths.margin(-2); | ||
} | ||
|
||
&__icon { | ||
color: inherit; | ||
} | ||
|
||
&__avatar { | ||
@extend %column; | ||
} | ||
|
||
&__content { | ||
@include typography.use-text-ellipsis; | ||
@extend %column; | ||
flex: 1 1 100%; | ||
|
||
text-align: start; | ||
|
||
white-space: nowrap; | ||
} | ||
|
||
&__header { | ||
@include typography.use-font-scale(micro); | ||
|
||
padding-block: lengths.padding(8); | ||
padding-inline: lengths.padding(16); | ||
|
||
text-transform: uppercase; | ||
|
||
font-weight: 400; | ||
} | ||
|
||
&__menu-wrapper { | ||
flex-shrink: 0; | ||
|
||
width: 0; | ||
|
||
height: 100%; | ||
|
||
opacity: 0; | ||
} | ||
|
||
.rcx-option__column { | ||
@extend %column; | ||
display: flex; | ||
|
||
justify-content: center; | ||
align-items: center; | ||
|
||
min-width: lengths.size(20); | ||
min-height: lengths.size(20); | ||
} | ||
|
||
.rcx-option__description { | ||
@include typography.use-font-scale(p2); | ||
@extend %column; | ||
display: inline; | ||
|
||
color: colors.font(secondary-info); | ||
} | ||
|
||
&:hover, | ||
&--focus { | ||
background: colors.neutral(100); | ||
} | ||
|
||
&--selected { | ||
background: colors.neutral(500); | ||
} | ||
|
||
&:hover &__menu-wrapper, | ||
&.focus-within &__menu-wrapper, | ||
&:focus-within &__menu-wrapper { | ||
display: flex; | ||
align-items: center; | ||
|
||
width: lengths.size(28); | ||
|
||
opacity: 1; | ||
} | ||
|
||
@each $name, $color in $variants { | ||
&--#{$name} { | ||
color: theme('option-color-variant-#{$name}', $color); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
.../components/Options/Option/OptionIcon.tsx → ...lage/src/components/Option/OptionIcon.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...ponents/Options/Option/OptionSkeleton.tsx → .../src/components/Option/OptionSkeleton.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
128 changes: 0 additions & 128 deletions
128
packages/fuselage/src/components/Options/Options.styles.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.