Skip to content

Commit

Permalink
fix(text-editor): update typo to ensure focused toolbar button has re…
Browse files Browse the repository at this point in the history
…lative position
  • Loading branch information
edleeks87 committed Aug 22, 2023
1 parent 0183a35 commit 25bcaf6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
12 changes: 8 additions & 4 deletions cypress/components/text-editor/text-editor.cy.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -374,31 +374,35 @@ context("Test for TextEditor component", () => {
"box-shadow",
"rgb(255, 188, 25) 0px 0px 0px 3px, rgba(0, 0, 0, 0.9) 0px 0px 0px 6px"
)
.and("have.css", "outline", "rgba(0, 0, 0, 0) solid 3px");
.and("have.css", "outline", "rgba(0, 0, 0, 0) solid 3px")
.and("have.css", "position", "relative");
textEditorToolbar("italic")
.focus()
.should(
"have.css",
"box-shadow",
"rgb(255, 188, 25) 0px 0px 0px 3px, rgba(0, 0, 0, 0.9) 0px 0px 0px 6px"
)
.and("have.css", "outline", "rgba(0, 0, 0, 0) solid 3px");
.and("have.css", "outline", "rgba(0, 0, 0, 0) solid 3px")
.and("have.css", "position", "relative");
textEditorToolbar("bullet-list")
.focus()
.should(
"have.css",
"box-shadow",
"rgb(255, 188, 25) 0px 0px 0px 3px, rgba(0, 0, 0, 0.9) 0px 0px 0px 6px"
)
.and("have.css", "outline", "rgba(0, 0, 0, 0) solid 3px");
.and("have.css", "outline", "rgba(0, 0, 0, 0) solid 3px")
.and("have.css", "position", "relative");
textEditorToolbar("number-list")
.focus()
.should(
"have.css",
"box-shadow",
"rgb(255, 188, 25) 0px 0px 0px 3px, rgba(0, 0, 0, 0.9) 0px 0px 0px 6px"
)
.and("have.css", "outline", "rgba(0, 0, 0, 0) solid 3px");
.and("have.css", "outline", "rgba(0, 0, 0, 0) solid 3px")
.and("have.css", "position", "relative");
});
});
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const StyledToolbarButton = styled.button.attrs({ type: "button" })<{
:focus,
:active {
z-index: 1;
postion: relative;
position: relative;
${theme.focusRedesignOptOut &&
/* istanbul ignore next */
css`
Expand Down

0 comments on commit 25bcaf6

Please sign in to comment.