Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Style icon
  • Loading branch information
jameskoster authored and ntsekouras committed Jun 23, 2023
commit 1684faf3a4cd2194911d6ab2d996c5f6b75b6f78
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,9 @@ function TemplateListItem( { title, className, description, icon, onClick } ) {
alignment="center"
style={ { width: '100%' } }
>
<Icon icon={ icon } />
<div className="edit-site-add-new-template__template-icon">
<Icon icon={ icon } />
</div>
<VStack alignment="center" spacing={ 0 }>
<Text
weight={ 500 }
Expand Down Expand Up @@ -286,6 +288,7 @@ export default function NewTemplate( {
<TemplateListItem
key={ slug }
title={ title }
className="edit-site-add-new-template__template-button"
description={
TEMPLATE_SHORT_DESCRIPTIONS[ slug ]
}
Expand Down
15 changes: 15 additions & 0 deletions packages/edit-site/src/components/add-new-template/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,21 @@
@include break-large() {
width: calc(100% - #{$grid-unit-80 * 2});
}

.edit-site-add-new-template__template-button,
.edit-site-add-new-template__custom-template-button {
svg {
fill: var(--wp-admin-theme-color);
}
}

.edit-site-add-new-template__template-icon {
padding: $grid-unit-10;
background: rgba(var(--wp-admin-theme-color--rgb), 0.04);
border-radius: 100%;
max-height: $grid-unit-50;
max-width: $grid-unit-50;
}
}

.edit-site-custom-template-modal__contents,
Expand Down