-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(ARCH-720): Improve usage of info tokens and fix bootstrap button
- Loading branch information
Geoffroy Baccarini
committed
Aug 3, 2023
1 parent
372d85a
commit 9f5cb43
Showing
18 changed files
with
177 additions
and
209 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
'@talend/design-system': patch | ||
'@talend/bootstrap-sass': patch | ||
'@talend/react-components': patch | ||
'@talend/bootstrap-theme': patch | ||
--- | ||
|
||
### Design System / Components / Bootstrap Theme | ||
Improve usage of design tokens for info variants | ||
|
||
### Bootstrap Theme | ||
Fix some styling on buttons | ||
|
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
62 changes: 4 additions & 58 deletions
62
fork/bootstrap-sass/assets/stylesheets/bootstrap/mixins/_buttons.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 |
---|---|---|
@@ -1,61 +1,7 @@ | ||
// Button variants | ||
// | ||
// Easily pump out default styles, as well as :hover, :focus, :active, | ||
// and disabled options for all buttons | ||
|
||
@mixin button-variant($color, $background, $border) { | ||
color: $color; | ||
background-color: $background; | ||
border-color: $border; | ||
|
||
&:focus, | ||
&.focus { | ||
color: $color; | ||
background-color: darken($background, 10%); | ||
border-color: darken($border, 25%); | ||
} | ||
&:hover { | ||
color: $color; | ||
background-color: darken($background, 10%); | ||
border-color: darken($border, 12%); | ||
} | ||
&:active, | ||
&.active, | ||
.open > &.dropdown-toggle { | ||
color: $color; | ||
background-color: darken($background, 10%); | ||
background-image: none; | ||
border-color: darken($border, 12%); | ||
|
||
&:hover, | ||
&:focus, | ||
&.focus { | ||
color: $color; | ||
background-color: darken($background, 17%); | ||
border-color: darken($border, 25%); | ||
} | ||
} | ||
&.disabled, | ||
&[disabled], | ||
fieldset[disabled] & { | ||
&:hover, | ||
&:focus, | ||
&.focus { | ||
background-color: $background; | ||
border-color: $border; | ||
} | ||
} | ||
|
||
.badge { | ||
color: $background; | ||
background-color: $color; | ||
} | ||
} | ||
|
||
// Button sizes | ||
@mixin button-size($padding-vertical, $padding-horizontal, $font-size, $line-height, $border-radius) { | ||
padding: $padding-vertical $padding-horizontal; | ||
font-size: $font-size; | ||
line-height: $line-height; | ||
border-radius: $border-radius; | ||
padding: $padding-vertical $padding-horizontal; | ||
font-size: $font-size; | ||
line-height: $line-height; | ||
border-radius: $border-radius; | ||
} |
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
2 changes: 1 addition & 1 deletion
2
packages/design-system/src/components/Message/variations/MessageInformation.module.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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
@use '~@talend/design-tokens/lib/tokens'; | ||
|
||
.information_border { | ||
border-left-color: tokens.$coral-color-accent-icon; | ||
border-left-color: tokens.$coral-color-info-icon; | ||
} |
Oops, something went wrong.