Skip to content

Commit

Permalink
fix: Button ghost background var (#310)
Browse files Browse the repository at this point in the history
  • Loading branch information
ggazzo authored Oct 25, 2020
1 parent fa6b31d commit 872f325
Show file tree
Hide file tree
Showing 12 changed files with 14 additions and 7 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions packages/fuselage/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"build": "run-s clean build:prod build:dev",
"eslint": "eslint src",
"stylelint": "stylelint 'src/**/*.scss'",
"fix": "stylelint --fix 'src/**/*.scss'",
"lint": "run-s eslint stylelint",
"lint-staged": "lint-staged",
"test": "jest",
Expand Down
8 changes: 2 additions & 6 deletions packages/fuselage/src/components/Button/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -132,14 +132,12 @@
}

&--ghost {
border-color: transparent;
background-color: transparent;
border-color: $button-colors-ghost-background-color;
background-color: $button-colors-ghost-border-color;
}

&--ghost-danger {
color: colors.danger(500);
border-color: transparent;
background-color: transparent;

&.disabled,
&:disabled {
Expand All @@ -149,8 +147,6 @@

&--ghost-success {
color: colors.success(500);
border-color: transparent;
background-color: transparent;

&.disabled,
&:disabled {
Expand Down
2 changes: 1 addition & 1 deletion packages/fuselage/src/components/Sidebar/TopBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ TopBar.Avatar = Avatar;
TopBar.Actions = Actions;
TopBar.Action = (props) => <ActionButton small ghost {...props}/>;
TopBar.Divider = () => <Divider mbs='neg-x2' mbe={0} />;
TopBar.Title = (props) => <Box rcx-sidebar-top-bar__title fontScale='p2' color='neutral-900' withTruncatedText {...props} />;
TopBar.Title = (props) => <Box rcx-sidebar-top-bar__title withTruncatedText {...props} />;

export default TopBar;
7 changes: 7 additions & 0 deletions packages/fuselage/src/components/Sidebar/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,12 @@ $sidebar-item-color-selected: theme('sidebar-item-color-selected', colors.foregr
padding-block: lengths.padding(16);
padding-inline: lengths.padding(16);
}

&__title {
@include typography.use-font-scale(p2);

color: colors.neutral(900);
}
}

&-item {
Expand Down Expand Up @@ -184,6 +190,7 @@ $sidebar-item-color-selected: theme('sidebar-item-color-selected', colors.foregr

&-title {
@include typography.use-font-scale(c2);
@include typography.use-with-truncated-text();
padding-block: lengths.padding(12);
padding-inline: lengths.padding(16);

Expand Down
3 changes: 3 additions & 0 deletions packages/fuselage/src/styles/variables/button-colors.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
@use '../colors.scss';

$button-colors-ghost-background-color: theme('button-colors-ghost-background-color', transparent);
$button-colors-ghost-border-color: theme('button-colors-ghost-border-color', transparent);

$button-colors-primary-background-color: theme('button-colors-primary-background-color', colors.primary(500));
$button-colors-primary-border-color: theme('button-colors-primary-border-color', colors.primary(500));
$button-colors-primary-color: theme('button-colors-primary-color', colors.foreground(alternative));
Expand Down

0 comments on commit 872f325

Please sign in to comment.