Skip to content

Commit

Permalink
DataViews: Restore preview focus outline in grid layout (#62991)
Browse files Browse the repository at this point in the history
Co-authored-by: t-hamano <wildworks@git.wordpress.org>
Co-authored-by: jameskoster <jameskoster@git.wordpress.org>
Co-authored-by: jasmussen <joen@git.wordpress.org>
Co-authored-by: carolinan <poena@git.wordpress.org>
  • Loading branch information
5 people authored Jul 2, 2024
1 parent a19348b commit 63f0cc8
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 16 deletions.
1 change: 0 additions & 1 deletion packages/dataviews/src/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,6 @@
aspect-ratio: 1/1;
background-color: $gray-100;
border-radius: $grid-unit-05;
overflow: hidden;
position: relative;

img {
Expand Down
9 changes: 1 addition & 8 deletions packages/edit-site/src/components/page-patterns/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,6 @@
display: flex;
flex-direction: column;
height: 100%;
border-radius: 3px 3px 0 0;

&.is-viewtype-grid {
.block-editor-block-preview__container {
border-radius: 3px 3px 0 0;
}
}

&.is-viewtype-table {
width: 96px;
Expand All @@ -62,7 +55,7 @@
cursor: pointer;
overflow: hidden;
height: 100%;
border-radius: 3px 3px 0 0;
border-radius: $grid-unit-05;

&:focus-visible {
box-shadow: 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
Expand Down
7 changes: 1 addition & 6 deletions packages/edit-site/src/components/page-templates/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
display: flex;
flex-direction: column;
height: 100%;
border-radius: 3px 3px 0 0;

.page-templates-preview-field__button {
box-shadow: none;
Expand All @@ -13,7 +12,7 @@
cursor: pointer;
overflow: hidden;
height: 100%;
border-radius: 3px;
border-radius: $grid-unit-05;

&:focus-visible {
box-shadow: 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
Expand All @@ -32,10 +31,6 @@
.block-editor-block-preview__container {
height: 100%;
}

.page-templates-preview-field__button {
border-radius: 3px 3px 0 0;
}
}

&.is-viewtype-table {
Expand Down
2 changes: 1 addition & 1 deletion packages/edit-site/src/components/posts-app/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
overflow: hidden;
height: 100%;
width: 100%;
border-radius: 3px 3px 0 0;
border-radius: $grid-unit-05;

&:focus-visible {
box-shadow: 0 0 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color);
Expand Down

0 comments on commit 63f0cc8

Please sign in to comment.