Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[8.x] fix: [Obs Alerts > Alert Detail][SCREEN READER]: H1 tag shou…
…ld not include secondary information: 0002 (elastic#193958) (elastic#194376) # Backport This will backport the following commits from `main` to `8.x`: - [fix: [Obs Alerts > Alert Detail][SCREEN READER]: H1 tag should not include secondary information: 0002 (elastic#193958)](elastic#193958) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Alexey Antonov","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-09-30T07:10:23Z","message":"fix: [Obs Alerts > Alert Detail][SCREEN READER]: H1 tag should not include secondary information: 0002 (elastic#193958)\n\nCloses: https://github.com/elastic/observability-accessibility/issues/60\r\n\r\n# Description \r\n\r\nObservability has a few pages that wrap related information like alert\r\ncounts in the H1 tag. This presents a challenge to screen readers\r\nbecause all of that information now becomes the heading level one. It\r\nclogs up the Headings menu and makes it harder to reason about the page\r\nand what's primary information vs. secondary.\r\n\r\n# What was changed?:\r\n\r\n- `pageTitle` was renamed to `pageTitleContent`. The title portion was\r\nmoved out of that component.\r\n- `ObservabilityPageTemplate.pageHeader` for the `Alert Detail` page was\r\nupdated to separate the title from the other content.\r\n\r\n> [!NOTE]\r\n> Related PR: elastic#193961 for `Rule\r\nDetail`\r\n\r\n\r\n# Screen: \r\n\r\n<img width=\"1226\" alt=\"image\"\r\nsrc=\"https://github.com/user-attachments/assets/bd33a0b8-3f44-409a-9655-53b739780e4e\">","sha":"4994e4141d45db4c404bafa034589b14262ef497","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Project:Accessibility","release_note:skip","v9.0.0","ci:project-deploy-observability","Team:obs-ux-management","v8.16.0","backport:version"],"title":"fix: [Obs Alerts > Alert Detail][SCREEN READER]: H1 tag should not include secondary information: 0002","number":193958,"url":"https://github.com/elastic/kibana/pull/193958","mergeCommit":{"message":"fix: [Obs Alerts > Alert Detail][SCREEN READER]: H1 tag should not include secondary information: 0002 (elastic#193958)\n\nCloses: https://github.com/elastic/observability-accessibility/issues/60\r\n\r\n# Description \r\n\r\nObservability has a few pages that wrap related information like alert\r\ncounts in the H1 tag. This presents a challenge to screen readers\r\nbecause all of that information now becomes the heading level one. It\r\nclogs up the Headings menu and makes it harder to reason about the page\r\nand what's primary information vs. secondary.\r\n\r\n# What was changed?:\r\n\r\n- `pageTitle` was renamed to `pageTitleContent`. The title portion was\r\nmoved out of that component.\r\n- `ObservabilityPageTemplate.pageHeader` for the `Alert Detail` page was\r\nupdated to separate the title from the other content.\r\n\r\n> [!NOTE]\r\n> Related PR: elastic#193961 for `Rule\r\nDetail`\r\n\r\n\r\n# Screen: \r\n\r\n<img width=\"1226\" alt=\"image\"\r\nsrc=\"https://github.com/user-attachments/assets/bd33a0b8-3f44-409a-9655-53b739780e4e\">","sha":"4994e4141d45db4c404bafa034589b14262ef497"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/193958","number":193958,"mergeCommit":{"message":"fix: [Obs Alerts > Alert Detail][SCREEN READER]: H1 tag should not include secondary information: 0002 (elastic#193958)\n\nCloses: https://github.com/elastic/observability-accessibility/issues/60\r\n\r\n# Description \r\n\r\nObservability has a few pages that wrap related information like alert\r\ncounts in the H1 tag. This presents a challenge to screen readers\r\nbecause all of that information now becomes the heading level one. It\r\nclogs up the Headings menu and makes it harder to reason about the page\r\nand what's primary information vs. secondary.\r\n\r\n# What was changed?:\r\n\r\n- `pageTitle` was renamed to `pageTitleContent`. The title portion was\r\nmoved out of that component.\r\n- `ObservabilityPageTemplate.pageHeader` for the `Alert Detail` page was\r\nupdated to separate the title from the other content.\r\n\r\n> [!NOTE]\r\n> Related PR: elastic#193961 for `Rule\r\nDetail`\r\n\r\n\r\n# Screen: \r\n\r\n<img width=\"1226\" alt=\"image\"\r\nsrc=\"https://github.com/user-attachments/assets/bd33a0b8-3f44-409a-9655-53b739780e4e\">","sha":"4994e4141d45db4c404bafa034589b14262ef497"}},{"branch":"8.x","label":"v8.16.0","branchLabelMappingKey":"^v8.16.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Alexey Antonov <[email protected]>
- Loading branch information