Skip to content

Commit

Permalink
Change document actions title heading level.
Browse files Browse the repository at this point in the history
  • Loading branch information
afercia committed Oct 6, 2022
1 parent 254145c commit 0d277b5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ describe( 'Multi-entity editor states', () => {
templateName
);
await page.waitForXPath(
`//h1[contains(@class, "edit-site-document-actions__title") and contains(text(), '${ templateName }')]`
`//h2[contains(@class, "edit-site-document-actions__title") and contains(text(), '${ templateName }')]`
);

removeErrorMocks();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ export default function DocumentActions( {
<Text
size="body"
className="edit-site-document-actions__title"
as="h1"
as="h2"
>
<VisuallyHidden as="span">
{ sprintf(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,13 @@
}
}

.edit-site-document-actions__title-wrapper > h1 {
margin: 0;

// See comment above about min-width
min-width: 0;
}

.edit-site-document-actions__title {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;

// See comment above about min-width
min-width: 0;
}

.edit-site-document-actions__secondary-item {
Expand Down

0 comments on commit 0d277b5

Please sign in to comment.