Skip to content

Commit

Permalink
fix(plugins/plugin-client-common): Click to select error block, and l…
Browse files Browse the repository at this point in the history
…eft border stays red

part of #8088
  • Loading branch information
starpit committed Sep 30, 2021
1 parent 7bc6ce2 commit 098aa6c
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,26 +36,24 @@
background-color: $focus-color;
}

&:focus,
&[data-is-focused] {
@include BlockFocusAttributes {
@include BlockBorder {
opacity: 1;
background-color: $focus-color;
}
}
}
@include Block {
&:focus,
&[data-is-focused] {
@include BlockBorder {
opacity: 1;
background-color: var(--color-table-border3);
}
@include FocusedBlock {
@include BlockBorder {
opacity: 1;
background-color: var(--color-table-border3);
}
}
@include ErrorBlock {
@include BlockBorder {
opacity: 0.625;
background-color: var(--color-red);
@include BlockNotFocusedAttributes {
@include BlockBorder {
opacity: 0.625;
background-color: var(--color-red);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,25 @@ $action-hover-delay: 210ms;
}
}

@mixin BlockFocusAttributes {
&:focus,
&[data-is-focused] {
@content;
}
}
@mixin BlockNotFocusedAttributes {
&:not(:focus):not([data-is-focused]) {
@content;
}
}
@mixin FocusedBlock {
@include Block {
@include BlockFocusAttributes {
@content;
}
}
}

@mixin SectionBreak {
@include Block {
&[data-is-section-break] {
Expand Down

0 comments on commit 098aa6c

Please sign in to comment.