Skip to content

Commit

Permalink
fix(button (tertiary)): Fixes border around tertiary buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
janiekyu committed Sep 15, 2023
1 parent 128f3dd commit d6801ed
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions packages/core/src/components/Button/button.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@
border-color: var(--cds-button-primary-disabled-border-color);
}
.cds-button--secondary {
display: inline-block;
border-width: var(--cds-button-secondary-border-width);
border-style: solid;
border-color: var(--cds-button-secondary-default-border-color);
Expand Down Expand Up @@ -90,9 +89,10 @@
border-color: var(--cds-button-secondary-disabled-border-color);
}
.cds-button--tertiary {
display: inline-block;
border-width: var(--cds-button-tertiary-border-width);
border-style: solid;
border-top-width: var(--cds-button-tertiary-border-width);
border-left-width: var(--cds-button-tertiary-border-width);
border-right-width: var(--cds-button-tertiary-border-width);
border-bottom-width: var(--cds-button-tertiary-underline);
border-color: var(--cds-button-tertiary-default-border-color);
border-radius: var(--cds-button-tertiary-border-radius);
Expand Down
6 changes: 3 additions & 3 deletions packages/core/src/components/Button/button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@
}

&--secondary {
display: inline-block;
border-width: var(--cds-button-secondary-border-width);
border-style: solid;
border-color: var(--cds-button-secondary-default-border-color);
Expand Down Expand Up @@ -113,9 +112,10 @@
}

&--tertiary {
display: inline-block;
border-width: var(--cds-button-tertiary-border-width);
border-style: solid;
border-top-width: var(--cds-button-tertiary-border-width);
border-left-width: var(--cds-button-tertiary-border-width);
border-right-width: var(--cds-button-tertiary-border-width);
border-bottom-width: var(--cds-button-tertiary-underline);
border-color: var(--cds-button-tertiary-default-border-color);
border-radius: var(--cds-button-tertiary-border-radius);
Expand Down
6 changes: 3 additions & 3 deletions packages/core/src/components/components.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/core/src/components/components.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d6801ed

Please sign in to comment.