Skip to content

Commit

Permalink
feat(skeleton): add display var, change default to block (#718)
Browse files Browse the repository at this point in the history
BREAKING CHANGE: inline-block changes to block
  • Loading branch information
SiebenSieben committed Jun 28, 2021
1 parent c0f7688 commit 27aaa60
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/skeleton/src/Component.stories.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ import styles from './stories.module.css';
className={ text('className', '') }
dataTestId={ text('dataTestId', '') }
animate={ boolean('animate', true) }
className={styles['example-7']}
>
<img
width={ 150 }
Expand Down
3 changes: 2 additions & 1 deletion packages/skeleton/src/index.module.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
@import '../../vars/src/colors-indigo.css';

:root {
--skeleton-display: block;
--skeleton-default-color: var(--color-light-specialbg-component);
--skeleton-border-radius: var(--border-radius-m);
--skeleton-backdrop-filter: none;
Expand All @@ -12,7 +13,7 @@

.component {
position: relative;
display: inline-block;
display: var(--skeleton-display);
vertical-align: middle;
color: transparent;
border-radius: var(--skeleton-border-radius);
Expand Down
5 changes: 5 additions & 0 deletions packages/skeleton/src/stories.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,8 @@
left: 72px;
top: 76px;
}

.example-7 {
width: 150px;
height: 150px;
}

0 comments on commit 27aaa60

Please sign in to comment.