Skip to content

Commit 41f72f0

Browse files
committed
naming correction
1 parent b75e165 commit 41f72f0

File tree

19 files changed

+58
-56
lines changed

19 files changed

+58
-56
lines changed

packages/uui-breadcrumbs/lib/uui-breadcrumb-item.element.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export class UUIBreadcrumbItemElement extends LitElement {
2222
color: currentColor;
2323
}
2424
a:hover {
25-
color: var(--uui-color-hover-standalone);
25+
color: var(--uui-color-interactive-emphasis);
2626
}
2727
a:focus {
2828
color: var(--uui-color-focus);

packages/uui-button-group/lib/uui-button-group.story.ts

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export const MixedLooksAndColors = () => html`
6060
<h4>${color}</h4>
6161
<uui-button-group>
6262
${looks.map(
63-
look => html`<uui-button color=${color} look=${look}>
63+
look => html`<uui-button color=${color as any} look=${look as any}>
6464
${look}
6565
</uui-button>`
6666
)}
@@ -94,25 +94,21 @@ export const LooksAndColors = () => html`
9494
look => html`
9595
<uui-button-group style="margin-bottom: 16px; display: block">
9696
<uui-button
97-
look="outline"
9897
label="Button 1"
99-
color=${color}
100-
look=${look}></uui-button>
98+
color=${color as any}
99+
look=${look as any}></uui-button>
101100
<uui-button
102-
look="outline"
103101
label="Button 2"
104-
color=${color}
105-
look=${look}></uui-button>
102+
color=${color as any}
103+
look=${look as any}></uui-button>
106104
<uui-button
107-
look="outline"
108105
label="Button 3"
109-
color=${color}
110-
look=${look}></uui-button>
106+
color=${color as any}
107+
look=${look as any}></uui-button>
111108
<uui-button
112-
look="danger"
113109
label="Button 4"
114-
color=${color}
115-
look=${look}></uui-button>
110+
color=${color as any}
111+
look=${look as any}></uui-button>
116112
</uui-button-group>
117113
`
118114
)}

packages/uui-button/lib/uui-button.element.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ export class UUIButtonElement extends FormControlMixin(
209209
:host([look='default']:not([disabled]):hover) button {
210210
background-color: var(
211211
--uui-button-background-color-hover,
212-
var(--uui-color-hover)
212+
var(--uui-color-surface-emphasis)
213213
);
214214
color: var(--uui-button-contrast-hover, var(--color-standalone));
215215
border-color: var(--uui-button-border-color-hover, transparent);
@@ -257,7 +257,7 @@ export class UUIButtonElement extends FormControlMixin(
257257
:host([look='secondary']:hover) button {
258258
background-color: var(
259259
--uui-button-background-color-hover,
260-
var(--uui-color-hover)
260+
var(--uui-color-surface-emphasis)
261261
);
262262
color: var(--uui-button-contrast-hover, var(--color-standalone));
263263
border-color: var(--uui-button-border-color-hover, transparent);

packages/uui-card-content-node/lib/uui-card-content-node.element.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ export class UUICardContentNodeElement extends UUICardElement {
7878
7979
#open-part:hover {
8080
text-decoration: underline;
81-
color: var(--uui-color-hover-standalone);
81+
color: var(--uui-color-interactive-emphasis);
8282
}
8383
8484
#name {

packages/uui-card-media/lib/uui-card-media.element.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export class UUICardMediaElement extends UUICardElement {
6060
bottom: 0;
6161
width: 100%;
6262
background-color: var(--uui-color-surface);
63-
color: var(--uui-color-text);
63+
color: var(--uui-color-interactive);
6464
border: none;
6565
cursor: pointer;
6666
border-top: 1px solid var(--uui-color-divider);
@@ -80,7 +80,7 @@ export class UUICardMediaElement extends UUICardElement {
8080
8181
#open-part:hover {
8282
text-decoration: underline;
83-
color: var(--uui-color-hover-standalone);
83+
color: var(--uui-color-interactive-emphasis);
8484
}
8585
8686
:host([image]:not([image=''])) #open-part {

packages/uui-card-user/lib/uui-card-user.element.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ export class UUICardUserElement extends UUICardElement {
8585
8686
#open-part:hover {
8787
text-decoration: underline;
88-
color: var(--uui-color-hover-standalone);
88+
color: var(--uui-color-interactive-emphasis);
8989
}
9090
`,
9191
];

packages/uui-checkbox/lib/uui-checkbox.element.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export class UUICheckboxElement extends UUIBooleanInputElement {
6161
);
6262
background-color: var(
6363
--uui-checkbox-background-color-hover,
64-
var(--uui-color-hover)
64+
var(--uui-color-surface-emphasis)
6565
);
6666
}
6767
label:focus #ticker {
@@ -71,7 +71,7 @@ export class UUICheckboxElement extends UUIBooleanInputElement {
7171
);
7272
background-color: var(
7373
--uui-checkbox-background-color-focus,
74-
var(--uui-color-hover)
74+
var(--uui-color-surface-emphasis)
7575
);
7676
}
7777
input:checked:not([disabled]) + #ticker {

packages/uui-combobox-list/lib/uui-combobox-list-option.element.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ export class UUIComboboxListOptionElement extends SelectableMixin(
5353
} */
5454
5555
:host(:hover) {
56-
background-color: var(--uui-color-hover);
57-
color: var(--uui-color-hover-standalone);
56+
background-color: var(--uui-color-surface-emphasis);
57+
color: var(--uui-color-interactive-emphasis);
5858
}
5959
6060
:host([disabled]) {

packages/uui-css/lib/custom-properties/colors.css

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,21 +17,24 @@
1717
--uui-color-disabled-contrast: #b3b3b3;
1818

1919
/* ----- UNIVERSAL ----- */
20-
--uui-color-header: #1b264f;
20+
--uui-color-header-surface: #1b264f;
21+
--uui-color-header-contrast: rgba(255, 255, 255, 0.8);
22+
--uui-color-header-contrast-emphasis: white;
2123

2224
--uui-color-focus: #2294ff;
2325

24-
--uui-color-hover: #f5f5f5;
25-
--uui-color-hover-standalone: #2152a3;
26-
2726
/* ----- SURFACE ----- */
2827
--uui-color-surface: #fff;
2928
--uui-color-surface-alt: #eeeeee;
29+
--uui-color-surface-emphasis: #f5f5f5;
3030

3131
--uui-color-background: #f5f5f5;
3232

33-
--uui-color-text: #1b264f;
34-
--uui-color-text-alt: #1b264fb5;
33+
--uui-color-text: var(--uui-palette-black);
34+
--uui-color-text-alt: var(--uui-palette-dune-black);
35+
36+
--uui-color-interactive: #1b264f;
37+
--uui-color-interactive-emphasis: #2152a3;
3538

3639
--uui-color-border: #d8d7d9;
3740
--uui-color-border-standalone: #c2c2c2;

packages/uui-menu-item/lib/uui-menu-item.element.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,13 @@ export class UUIMenuItemElement extends SelectOnlyMixin(
5252
:host(:not([active], [selected], [disabled]))
5353
#menu-item
5454
#caret-button:hover {
55-
background-color: var(--uui-color-hover);
55+
background-color: var(--uui-color-surface-emphasis);
5656
}
5757
:host(:not([active], [selected], [disabled]))
5858
#menu-item
5959
#label-button:hover,
6060
:host(:not([active], [selected])) #menu-item #caret-button:hover {
61-
color: var(--uui-color-hover-standalone);
61+
color: var(--uui-color-interactive-emphasis);
6262
}
6363
6464
:host([active]) {
@@ -142,7 +142,7 @@ export class UUIMenuItemElement extends SelectOnlyMixin(
142142
display: flex;
143143
align-items: center;
144144
justify-content: center;
145-
color: var(--uui-color-text);
145+
color: var(--uui-color-interactive);
146146
}
147147
148148
#label-button-background {

0 commit comments

Comments
 (0)