Skip to content

Commit 523e5dd

Browse files
committed
Better title for icon colors
1 parent e893682 commit 523e5dd

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

src/Umbraco.Web.UI.Client/src/packages/core/icon-registry/icon-picker-modal/icon-picker-modal.element.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@ export class UmbIconPickerModalElement extends UmbModalBaseElement<UmbIconPicker
9191
this._colorList.map(
9292
(color) => html`
9393
<uui-color-swatch
94-
label=${color.alias}
95-
title=${color.alias}
94+
label=${color.name ?? color.alias}
95+
title=${color.name ?? color.alias}
9696
value=${color.alias}
9797
style="--uui-swatch-color: var(${color.varName})">
9898
</uui-color-swatch>

src/Umbraco.Web.UI.Client/src/packages/core/resources/extractUmbColorVariable.function.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
// TODO: This does not belong here, lets move it to the icon package.
22

33
export const umbracoColors = [
4-
{ alias: 'text', varName: '--uui-color-text' },
5-
{ alias: 'yellow', varName: '--uui-palette-sunglow' },
6-
{ alias: 'pink', varName: '--uui-palette-spanish-pink' },
7-
{ alias: 'blue', varName: '--uui-palette-violet-blue' },
8-
{ alias: 'light-blue', varName: '--uui-palette-malibu' },
9-
{ alias: 'red', varName: '--uui-palette-maroon-flush' },
10-
{ alias: 'green', varName: '--uui-palette-jungle-green' },
11-
{ alias: 'brown', varName: '--uui-palette-chamoisee' },
12-
{ alias: 'grey', varName: '--uui-palette-dusty-grey' },
4+
{ name: 'Black', alias: 'text', varName: '--uui-color-text' },
5+
{ name: 'Yellow', alias: 'yellow', varName: '--uui-palette-sunglow' },
6+
{ name: 'Pink', alias: 'pink', varName: '--uui-palette-spanish-pink' },
7+
{ name: 'Blue', alias: 'blue', varName: '--uui-palette-violet-blue' },
8+
{ name: 'Light Blue', alias: 'light-blue', varName: '--uui-palette-malibu' },
9+
{ name: 'Red', alias: 'red', varName: '--uui-palette-maroon-flush' },
10+
{ name: 'Green', alias: 'green', varName: '--uui-palette-jungle-green' },
11+
{ name: 'Brown', alias: 'brown', varName: '--uui-palette-chamoisee' },
12+
{ name: 'Grey', alias: 'grey', varName: '--uui-palette-dusty-grey' },
1313

1414
{ alias: 'black', legacy: true, varName: '--uui-color-text' },
1515
{ alias: 'blue-grey', legacy: true, varName: '--uui-palette-dusty-grey' },

0 commit comments

Comments
 (0)