Skip to content

Commit

Permalink
fixup! Feat(web): Introduce Skeleton component #DS-1625
Browse files Browse the repository at this point in the history
  • Loading branch information
Řehořková Kateřina committed Jan 23, 2025
1 parent c76f0f8 commit e3d509c
Showing 1 changed file with 12 additions and 13 deletions.
25 changes: 12 additions & 13 deletions packages/web/src/scss/components/Skeleton/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,20 @@ The `Skeleton--text` class is used to create a text skeleton.
</div>
```

## Headline
## Heading

The `Skeleton--headline` class is used to create a headline skeleton.
The `Skeleton--heading` class is used to create a heading skeleton.

```html
<div class="Skeleton Skeleton--headline" aria-busy="true" aria-live="polite">
<div class="Skeleton Skeleton--heading" aria-busy="true" aria-live="polite">
<div class="Skeleton__item Skeleton__item--text Skeleton__item--small" aria-hidden="true"></div>
<div class="Skeleton__item Skeleton__item--text Skeleton__item--small" aria-hidden="true"></div>
</div>
```

### Text, Headline Sizes
### Text, Heading Sizes

The Skeleton component supports the following sizes for text and headline skeletons:
The Skeleton component supports the following sizes for text and heading skeletons:

- `Skeleton__item--xsmall`
- `Skeleton__item--small`
Expand All @@ -45,11 +45,11 @@ Use CSS custom properties to define the width, height, and radius of the shape.

- The default radius is `--spirit-radius-300`

```html
--spirit-skeleton-shape-width: number{px}; --spirit-skeleton-shape-height: number{px}; --spirit-skeleton-shape-radius:
var(--spirit-radius-200); --spirit-skeleton-shape-tablet-radius: var(--spirit-radius-300);
--spirit-skeleton-shape-desktop-radius: var(--spirit-radius-400);
```
- `--spirit-skeleton-shape-width: number{px};`
- `--spirit-skeleton-shape-height: number{px};`
- `--spirit-skeleton-shape-radius:var(--spirit-radius-200);`
- `--spirit-skeleton-shape-tablet-radius: var(--spirit-radius-300);`
- `--spirit-skeleton-shape-desktop-radius: var(--spirit-radius-400);`

```html
<div class="Skeleton Skeleton--shape" aria-busy="true" aria-live="polite">
Expand All @@ -64,9 +64,8 @@ var(--spirit-radius-200); --spirit-skeleton-shape-tablet-radius: var(--spirit-ra

- For circle there is class `Skeleton__item--circle`

```html
--spirit-skeleton-shape-width: number{px}; --spirit-skeleton-shape-height: number{px};
```
- `--spirit-skeleton-shape-width: number{px};`
- `--spirit-skeleton-shape-height: number{px};`

```html
<div class="Skeleton Skeleton--shape" aria-busy="true" aria-live="polite">
Expand Down

0 comments on commit e3d509c

Please sign in to comment.