Skip to content

Commit a33db0c

Browse files
committed
fix: set stroke width for icons globally
1 parent b04f729 commit a33db0c

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

src/components/GlobalStyles.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ const GlobalStylesElement = createGlobalStyle<GlobalStylesElementProps>`
9898
min-width: var(--icon-size);
9999
min-height: var(--icon-size);
100100
max-height: var(--icon-size);
101+
stroke-width: var(--border-width);
101102
}
102103
103104
.cube-animation-spin {

src/tasty/styles/types.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,15 @@ type OpaquePercentage = '' | `.${Digit}` | `.${Digit}${Digit}` | '.100';
5252
export type NoType = false | null | undefined;
5353

5454
export interface StylesInterface
55-
extends Omit<CSSProperties, 'color' | 'fill' | 'font' | 'outline' | 'type'> {
55+
extends Omit<
56+
CSSProperties,
57+
'color' | 'fill' | 'font' | 'outline' | 'type',
58+
'flexDirection'
59+
> {
60+
/**
61+
* @deprecated Use `flow` style instead.
62+
*/
63+
flexDirection: CSSProperties['flexDirection'];
5664
/** Set the background color of the element.
5765
* ```
5866
* fill="#{name_of_the_color}"

0 commit comments

Comments
 (0)