Skip to content

Commit

Permalink
[components] Remove unused classNames
Browse files Browse the repository at this point in the history
  • Loading branch information
Kristoffer Sivertsen committed May 23, 2019
1 parent b8695a7 commit 922943a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 0 additions & 1 deletion packages/@sanity/components/src/previews/DefaultPreview.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ class DefaultPreview extends React.PureComponent {
className={`
${styles.root}
${subtitle ? styles.hasSubtitle : ''}
${media ? styles.hasMedia : ''}
`}
>
{media !== false && (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@
clear: both;
}

.hasSubtitle {
/* this is used nested */
}

.heading {
min-width: 0; /* making ellipsis work */
margin-right: var(--small-padding);
Expand Down Expand Up @@ -107,7 +111,6 @@

.placeholder {
composes: root;
composes: hasSubtitle;

@nest & .heading {
display: flex;
Expand Down

0 comments on commit 922943a

Please sign in to comment.