From ec6bc7a5f4e6a297539ebb7756ff0f921a4f52c6 Mon Sep 17 00:00:00 2001 From: Saurabh Sharma Date: Fri, 17 Jan 2025 02:36:17 +0530 Subject: [PATCH] [MM-61677]: Update heading level (#29784) * [MA-51]: Update heading level * [MA-51]: Fixed E2E tests --------- Co-authored-by: Mattermost Build --- .../support/ui/components/channels/message_priority.ts | 2 +- .../src/components/post_priority/post_priority_picker.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/e2e-tests/playwright/support/ui/components/channels/message_priority.ts b/e2e-tests/playwright/support/ui/components/channels/message_priority.ts index 90f48c0f9168..6e532758c315 100644 --- a/e2e-tests/playwright/support/ui/components/channels/message_priority.ts +++ b/e2e-tests/playwright/support/ui/components/channels/message_priority.ts @@ -25,7 +25,7 @@ export default class MessagePriority { // Priority dialog elements this.priorityDialog = container.page().getByRole('dialog'); - this.dialogHeader = this.priorityDialog.locator('h4.modal-title'); + this.dialogHeader = this.priorityDialog.locator('h2.modal-title'); } async clickPriorityIcon() { diff --git a/webapp/channels/src/components/post_priority/post_priority_picker.tsx b/webapp/channels/src/components/post_priority/post_priority_picker.tsx index 8124a7c6d5cf..844032a58c0e 100644 --- a/webapp/channels/src/components/post_priority/post_priority_picker.tsx +++ b/webapp/channels/src/components/post_priority/post_priority_picker.tsx @@ -42,7 +42,7 @@ const PersistentNotificationsIcon = styled(BellRingOutlineIcon)` fill: rgba(var(--center-channel-color-rgb), 0.75); `; -const Header = styled.h4` +const Header = styled.h2` align-items: center; display: flex; gap: 8px;