From c51e895a8304f4bec0116521fd7b872ca25781ee Mon Sep 17 00:00:00 2001 From: hazre Date: Tue, 10 Mar 2026 18:29:24 +0100 Subject: [PATCH] fix: underline links from being applied everywhere Now it's limited to chat, bios and room descriptions. --- ...rline_links_setting_no_longer_affects_the_entire_app.md | 7 +++++++ src/app/components/room-topic-viewer/RoomTopicViewer.tsx | 2 +- src/app/components/user-profile/UserRoomProfile.tsx | 1 + src/app/features/settings/cosmetics/Themes.tsx | 2 +- src/index.css | 4 +++- 5 files changed, 13 insertions(+), 3 deletions(-) create mode 100644 .changeset/underline_links_setting_no_longer_affects_the_entire_app.md diff --git a/.changeset/underline_links_setting_no_longer_affects_the_entire_app.md b/.changeset/underline_links_setting_no_longer_affects_the_entire_app.md new file mode 100644 index 000000000..e56d3fc5b --- /dev/null +++ b/.changeset/underline_links_setting_no_longer_affects_the_entire_app.md @@ -0,0 +1,7 @@ +--- +default: patch +--- + +# "Underline Links" setting no longer affects the entire app + +The "Underline Links" accessibility setting was incorrectly applying link underlines globally, including to buttons in the Lobby and Message Search in spaces. It is now scoped to only the areas where it's relevant, which is chat messages, user bios, and room descriptions. The setting description in Appearance has been updated to reflect this. diff --git a/src/app/components/room-topic-viewer/RoomTopicViewer.tsx b/src/app/components/room-topic-viewer/RoomTopicViewer.tsx index 87fc74f4e..8838cea25 100644 --- a/src/app/components/room-topic-viewer/RoomTopicViewer.tsx +++ b/src/app/components/room-topic-viewer/RoomTopicViewer.tsx @@ -29,7 +29,7 @@ export const RoomTopicViewer = as< - + {scaleSystemEmoji(topic)} diff --git a/src/app/components/user-profile/UserRoomProfile.tsx b/src/app/components/user-profile/UserRoomProfile.tsx index c41e20814..09e2ab970 100644 --- a/src/app/components/user-profile/UserRoomProfile.tsx +++ b/src/app/components/user-profile/UserRoomProfile.tsx @@ -180,6 +180,7 @@ function UserExtendedSection({ {bioContent && ( } /> diff --git a/src/index.css b/src/index.css index f2f2547bf..453dc7f00 100755 --- a/src/index.css +++ b/src/index.css @@ -177,7 +177,9 @@ pre { /* Accessibility Overrides :D */ -.force-underline-links a { +.force-underline-links [data-message-id] a:not([data-mention-id]), +.force-underline-links [data-profile-bio] a, +.force-underline-links [data-room-topic] a { text-decoration: underline !important; text-decoration-thickness: 1px; text-underline-offset: 2px;