Skip to content

Commit b965db8

Browse files
fix(ui): add hidden sidebar fields css specificity (#13344)
Adds specificity to sidebar no fields css styling.
1 parent 1b93c4b commit b965db8

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

packages/ui/src/elements/DocumentFields/index.scss

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
}
1919

2020
&--force-sidebar-wrap,
21-
&:has(.document-fields__sidebar-wrap .render-fields:empty) {
21+
&:has(.document-fields__sidebar-wrap .document-fields__sidebar-fields > .render-fields:empty) {
2222
--sidebar-gutter-h-left: var(--gutter-h);
2323
--sidebar-gutter-h-right: var(--gutter-h);
2424
--main-gutter-h-left: var(--gutter-h);
@@ -30,7 +30,9 @@
3030
--main-border: 1px solid var(--theme-elevation-100);
3131
--main-field-margin: calc(var(--base) * -2);
3232

33-
&:has(.document-fields__sidebar-wrap .render-fields:empty) {
33+
&:has(
34+
.document-fields__sidebar-wrap .document-fields__sidebar-fields > .render-fields:empty
35+
) {
3436
--main-width: 100%;
3537
--main-border: none;
3638
--main-field-margin: initial;
@@ -81,7 +83,7 @@
8183
}
8284

8385
&__sidebar-wrap {
84-
&:has(.render-fields:empty) {
86+
&:has(.document-fields__sidebar-fields > .render-fields:empty) {
8587
--sidebar-wrap-width: 0;
8688
--sidebar-wrap-min-width: 0;
8789
--sidebar-wrap-position: initial;

0 commit comments

Comments
 (0)