Skip to content

Commit 0cc2af2

Browse files
authored
Fix Tag color on iOS (#2951)
* Fix Tag color on iOS * Fix Storybook preview * Use latest color tokens for Storybook * Upgrade vulnerable dependencies
1 parent 5d14b10 commit 0cc2af2

File tree

6 files changed

+613
-619
lines changed

6 files changed

+613
-619
lines changed

.changeset/tidy-eels-end.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@sumup-oss/circuit-ui": patch
3+
---
4+
5+
Fixed the Tag component's text color on iOS.

.storybook/components/Icons.module.css

+2-6
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,7 @@
2929
width: 100%;
3030
height: var(--cui-spacings-kilo);
3131
content: "";
32-
background: linear-gradient(
33-
rgb(255 255 255 / 100%),
34-
rgb(255 255 255 / 66%),
35-
rgb(255 255 255 / 0%)
36-
);
32+
background: linear-gradient(var(--cui-bg-normal), transparent);
3733
}
3834
}
3935

@@ -86,9 +82,9 @@
8682
.label {
8783
display: block;
8884
overflow: hidden;
85+
text-overflow: ellipsis;
8986
font-size: var(--cui-body-s-font-size);
9087
line-height: var(--cui-body-s-line-height);
91-
text-overflow: ellipsis;
9288
white-space: nowrap;
9389
}
9490

.storybook/manager.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import '@sumup-oss/design-tokens/dynamic.css';
22

3-
import type { CSSProperties } from 'react';
3+
// biome-ignore lint/correctness/noUnusedImports:
4+
import React, { type CSSProperties } from 'react';
45
import { addons, types } from '@storybook/manager-api';
56

67
import { dark, light, listenToColorScheme } from './themes.js';

.storybook/themes.ts

+10-10
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export const light = create({
2121
appBg: '#ffffff', // var(--cui-bg-normal)
2222
appContentBg: '#ffffff', // var(--cui-bg-normal)
2323
appPreviewBg: '#ffffff', // var(--cui-bg-normal)
24-
appBorderColor: '#c2c9d1', // var(--cui-border-normal)
24+
appBorderColor: '#aeb6be', // var(--cui-border-normal)
2525
appBorderRadius: 0,
2626

2727
// Text colors
@@ -31,15 +31,15 @@ export const light = create({
3131

3232
// Toolbar default and active colors
3333
barTextColor: '#6a737c', // var(--cui-fg-subtle)
34-
barHoverColor: '#33373e', // var(--cui-fg-subtle-hovered)
35-
barSelectedColor: '#0f131a', // var(--cui-fg-subtle-pressed)
34+
barHoverColor: '#6a737c', // var(--cui-fg-subtle-hovered)
35+
barSelectedColor: '#6a737c', // var(--cui-fg-subtle-pressed)
3636
barBg: '#ffffff', // var(--cui-bg-normal)
3737

3838
// Form colors
39-
buttonBg: '#f6f7f9', // var(--cui-bg-subtle)
40-
buttonBorder: '#d6dbe1', // var(--cui-border-subtle)
39+
buttonBg: '#f0f1f5', // var(--cui-bg-subtle)
40+
buttonBorder: '#e3e7ec', // var(--cui-border-subtle)
4141
inputBg: '#ffffff', // var(--cui-bg-normal)
42-
inputBorder: '#c2c9d1', // var(--cui-border-normal)
42+
inputBorder: '#aeb6be', // var(--cui-border-normal)
4343
inputTextColor: '#0f131a', // var(--cui-fg-normal)
4444
inputBorderRadius: 4, // var(--cui-border-radius-bit)
4545
});
@@ -48,13 +48,13 @@ export const dark = create({
4848
base: 'dark',
4949
...brand,
5050
brandImage: '/images/logo-name-dark.png',
51-
colorPrimary: '#ffffff', // var(--cui-fg-accent)
51+
colorPrimary: '#e1e7ef', // var(--cui-fg-accent)
5252
colorSecondary: '#ffffff', // var(--cui-fg-normal)
5353

5454
// UI
55-
appBg: '#0f131a', // var(--cui-bg-normal)
56-
appContentBg: '#0f131a', // var(--cui-bg-normal)
57-
appPreviewBg: '#0f131a', // var(--cui-bg-normal)
55+
appBg: '#171d24', // var(--cui-bg-normal)
56+
appContentBg: '#171d24', // var(--cui-bg-normal)
57+
appPreviewBg: '#171d24', // var(--cui-bg-normal)
5858
});
5959

6060
export const components = {

0 commit comments

Comments
 (0)