Skip to content

Commit 0eb07a4

Browse files
committed
feat(spinner): css changes and data attrs (#2390)
part of #2295 Though I'd like to use ```html <svg data-size="*" /> ``` ```css width: attr(data-size px, '40px'); height: attr(data-size px, '40px'); ``` this is not currently supported. https://caniuse.com/?search=attr
1 parent 8f4d247 commit 0eb07a4

File tree

1 file changed

+0
-11
lines changed
  • packages/react/src/components/loaders/Spinner

1 file changed

+0
-11
lines changed

packages/react/src/components/loaders/Spinner/Spinner.tsx

-11
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,6 @@ import type * as React from 'react';
33

44
import { useSynchronizedAnimation } from '../../../utilities';
55

6-
const sizeMap: {
7-
[key in NonNullable<SpinnerProps['size']>]: number;
8-
} = {
9-
'2xs': 13,
10-
xs: 20,
11-
sm: 27,
12-
md: 40,
13-
lg: 56,
14-
xl: 79,
15-
};
16-
176
export type SpinnerProps = {
187
/** Spinner title */
198
title: string;

0 commit comments

Comments
 (0)