Skip to content

Commit 63aae51

Browse files
jnm2377tw15egankodiakhq[bot]
authored
feat(Components): update color tokens (1/2) (#8425)
* feat: accordion color tokens * feat: breadcrumb * feat: button * feat: checkbox * feat: codesnippet * feat: combo box * fix: update tokens Co-authored-by: TJ Egan <tw15egan@gmail.com> Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
1 parent 19cd709 commit 63aae51

File tree

8 files changed

+111
-118
lines changed

8 files changed

+111
-118
lines changed

packages/components/src/components/accordion/_accordion.scss

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@
2525

2626
.#{$prefix}--accordion__item {
2727
overflow: visible;
28-
border-top: 1px solid $ui-03;
28+
border-top: 1px solid $border-subtle;
2929
transition: all $duration--fast-02 motion(standard, productive);
3030

3131
&:last-child {
32-
border-bottom: 1px solid $ui-03;
32+
border-bottom: 1px solid $border-subtle;
3333
}
3434
}
3535

@@ -45,7 +45,7 @@
4545
min-height: rem(40px);
4646
margin: 0;
4747
padding: rem(10px) 0;
48-
color: $text-01;
48+
color: $text-primary;
4949
cursor: pointer;
5050
transition: background-color motion(standard, productive) $duration--fast-02;
5151

@@ -60,7 +60,7 @@
6060
}
6161

6262
&:hover::before {
63-
background-color: $hover-ui;
63+
background-color: $background-hover;
6464
}
6565

6666
&:focus {
@@ -86,12 +86,12 @@
8686

8787
// Disabled styles
8888
.#{$prefix}--accordion__heading[disabled] {
89-
color: $disabled-02;
89+
color: $text-disabled;
9090
cursor: not-allowed;
9191
}
9292

9393
.#{$prefix}--accordion__heading[disabled] .#{$prefix}--accordion__arrow {
94-
fill: $disabled-02;
94+
fill: $icon-disabled;
9595
}
9696

9797
.#{$prefix}--accordion__heading[disabled]:hover::before {
@@ -100,11 +100,11 @@
100100

101101
.#{$prefix}--accordion__item--disabled,
102102
.#{$prefix}--accordion__item--disabled + .#{$prefix}--accordion__item {
103-
border-top: 1px solid $disabled-02;
103+
border-top: 1px solid $border-disabled;
104104
}
105105

106106
li.#{$prefix}--accordion__item--disabled:last-of-type {
107-
border-bottom: 1px solid $disabled-02;
107+
border-bottom: 1px solid $border-disabled;
108108
}
109109

110110
.#{$prefix}--accordion__arrow {
@@ -117,7 +117,7 @@
117117
margin: $accordion-arrow-margin;
118118
transform: rotate(-270deg) #{'/*rtl:ignore*/'};
119119
transition: all $duration--fast-02 motion(standard, productive);
120-
fill: $ui-05;
120+
fill: $icon-primary;
121121

122122
// Windows, Firefox HCM Fix
123123
@media screen and (-ms-high-contrast: active),
@@ -199,7 +199,7 @@
199199

200200
.#{$prefix}--accordion__arrow {
201201
transform: rotate(-90deg) #{'/*rtl:ignore*/'};
202-
fill: $ui-05;
202+
fill: $icon-primary;
203203

204204
// Windows, Firefox HCM Fix
205205
@media screen and (-ms-high-contrast: active),
@@ -219,7 +219,7 @@
219219
.#{$prefix}--accordion.#{$prefix}--skeleton .#{$prefix}--accordion__arrow {
220220
cursor: default;
221221
pointer-events: none;
222-
fill: $ui-05;
222+
fill: $icon-primary;
223223

224224
&:hover,
225225
&:focus,

packages/components/src/components/breadcrumb/_breadcrumb.scss

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,16 +36,16 @@
3636
}
3737

3838
.#{$prefix}--breadcrumb-item .#{$prefix}--link:visited {
39-
color: $link-01;
39+
color: $link-primary;
4040

4141
&:hover {
42-
color: $hover-primary-text;
42+
color: $link-primary-hover;
4343
}
4444
}
4545

4646
.#{$prefix}--breadcrumb-item::after {
4747
margin-left: $carbon--spacing-03;
48-
color: $text-01;
48+
color: $text-primary;
4949
content: '/';
5050
}
5151

@@ -66,7 +66,7 @@
6666
.#{$prefix}--breadcrumb-item [aria-current='page'],
6767
.#{$prefix}--breadcrumb-item.#{$prefix}--breadcrumb-item--current
6868
.#{$prefix}--link {
69-
color: $text-01;
69+
color: $text-primary;
7070
cursor: auto;
7171

7272
&:hover {
@@ -94,7 +94,7 @@
9494
bottom: 2px;
9595
width: rem(12px);
9696
height: 1px;
97-
background: $hover-primary-text;
97+
background: $link-primary-hover;
9898
opacity: 0;
9999
transition: opacity $duration--fast-01 motion(standard, productive);
100100
content: '';
@@ -114,13 +114,13 @@
114114
.#{$prefix}--breadcrumb-item .#{$prefix}--overflow-menu__icon {
115115
position: relative;
116116
transform: translateY(4px);
117-
fill: $link-01;
117+
fill: $link-primary;
118118
}
119119

120120
.#{$prefix}--breadcrumb-item
121121
.#{$prefix}--overflow-menu:hover
122122
.#{$prefix}--overflow-menu__icon {
123-
fill: $hover-primary-text;
123+
fill: $link-primary-hover;
124124
}
125125

126126
.#{$prefix}--breadcrumb-menu-options:focus {
@@ -136,7 +136,7 @@
136136
margin: 0 auto;
137137
background: transparent;
138138
border-right: $caret-size solid transparent;
139-
border-bottom: $caret-size solid $field-01;
139+
border-bottom: $caret-size solid $field;
140140
border-left: $caret-size solid transparent;
141141
}
142142

0 commit comments

Comments
 (0)