Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 0 additions & 20 deletions packages/admin-ui/src/page/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -52,23 +52,3 @@
padding: var(--wpds-dimension-padding-lg) var(--wpds-dimension-padding-2xl);
}
}

// Show button text labels when preference is enabled.
.show-icon-labels {
.admin-ui-page__header-actions {
.components-button.has-icon {
width: auto;
padding: 0 var(--wpds-dimension-padding-xs);

// Hide the button icons when labels are set to display...
svg {
display: none;
}
// ... and display labels.
&::after {
content: attr(aria-label);
font-size: var(--wpds-typography-font-size-sm);
}
}
}
}
18 changes: 18 additions & 0 deletions packages/edit-site/src/components/page-patterns/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -115,3 +115,21 @@
padding-right: $grid-unit-30;
}
}

// Show button text labels when preference is enabled.
.show-icon-labels {
.edit-site-patterns__button.has-icon {
width: auto;
padding: 0 var(--wpds-dimension-padding-xs);

// Hide the button icons when labels are set to display...
svg {
display: none;
}
// ... and display labels.
&::after {
content: attr(aria-label);
font-size: var(--wpds-typography-font-size-sm);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const GlobalStylesPageActions = ( {
const history = useHistory();

return (
<HStack>
<HStack className="edit-site-styles__header-actions">
<Button
isPressed={ isStyleBookOpened }
icon={ seen }
Expand Down
19 changes: 19 additions & 0 deletions packages/edit-site/src/components/sidebar-global-styles/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,22 @@
}
}

// Show button text labels when preference is enabled.
.show-icon-labels {
.edit-site-styles__header-actions {
.components-button.has-icon {
width: auto;
padding: 0 var(--wpds-dimension-padding-xs);

// Hide the button icons when labels are set to display...
svg {
display: none;
}
// ... and display labels.
&::after {
content: attr(aria-label);
font-size: var(--wpds-typography-font-size-sm);
}
}
}
}
Loading