-
Notifications
You must be signed in to change notification settings - Fork 0
fix sidebar stye for nested tabs #32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -110,23 +110,23 @@ | |
| justify-content: end; | ||
| } | ||
|
|
||
| .has-align-sidebar-left &, | ||
| .has-align-sidebar-right & { | ||
| .has-align-sidebar-left > &, | ||
| .has-align-sidebar-right > & { | ||
| flex-wrap: wrap; | ||
| } | ||
|
|
||
| .has-align-sidebar-left & { | ||
| .has-align-sidebar-left > & { | ||
| flex: 1 1 33.33333%; | ||
| } | ||
|
|
||
| .has-align-sidebar-right & { | ||
| .has-align-sidebar-right > & { | ||
| flex: 1 1 33.33333%; | ||
| order: 2; | ||
| } | ||
|
|
||
| &-item { | ||
|
|
||
| .has-align-sidebar-right & { | ||
| .has-align-sidebar-right > & { | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Direct child selector won't match grandchild elementsHigh Severity The Additional Locations (2)Reviewed by Cursor Bugbot for commit 3d87836. Configure here. |
||
|
|
||
| &:hover, | ||
| &:focus-within { | ||
|
|
@@ -144,7 +144,7 @@ | |
| border-left: var(--wp--blockparty--tabs--nav-border); | ||
| } | ||
|
|
||
| .has-align-sidebar-left & { | ||
| .has-align-sidebar-left > & { | ||
|
|
||
| &:hover, | ||
| &:focus-within { | ||
|
|
@@ -167,13 +167,13 @@ | |
|
|
||
| &-panels { | ||
|
|
||
| .has-align-sidebar-right & { | ||
| .has-align-sidebar-right > & { | ||
| flex: 1 1 66.66666%; | ||
| align-self: stretch; | ||
| order: 1; | ||
| } | ||
|
|
||
| .has-align-sidebar-left & { | ||
| .has-align-sidebar-left > & { | ||
| flex: 1 1 66.66666%; | ||
| align-self: stretch; | ||
| } | ||
|
|
@@ -187,17 +187,17 @@ | |
| display: none; | ||
| } | ||
|
|
||
| .has-align-sidebar-left &, | ||
| .has-align-sidebar-right & { | ||
| .has-align-sidebar-left > &, | ||
| .has-align-sidebar-right > & { | ||
| height: 100%; | ||
| border-top: 0; | ||
| } | ||
|
|
||
| .has-align-sidebar-left & { | ||
| .has-align-sidebar-left > & { | ||
| border-left: var(--wp--blockparty--tabs--panel-border); | ||
| } | ||
|
|
||
| .has-align-sidebar-right & { | ||
| .has-align-sidebar-right > & { | ||
| border-right: var(--wp--blockparty--tabs--panel-border); | ||
| } | ||
| } | ||
|
|
||


There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Editor sidebar panel-item selector won't match grandchildren
High Severity
The
>combinator in.has-align-sidebar-right > &at the top level of.wp-block-blockparty-tabsproduces.has-align-sidebar-right > .wp-block-blockparty-tabs-panel-item(via&-panel-itemon line 70). In both editor and frontend DOM,-panel-itemis nested inside-panels, making it a grandchild — not a direct child — of the.has-align-sidebar-*element. Thedisplay: flexoverride for active/selected panel items in sidebar mode will never apply in the editor.Reviewed by Cursor Bugbot for commit 3d87836. Configure here.