Skip to content

Commit 95092b8

Browse files
authored
Merge pull request #157 from SableClient/fix/scope-underline-links
fix: underline links from being applied everywhere
2 parents d254177 + c51e895 commit 95092b8

File tree

5 files changed

+13
-3
lines changed

5 files changed

+13
-3
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
default: patch
3+
---
4+
5+
# "Underline Links" setting no longer affects the entire app
6+
7+
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.

src/app/components/room-topic-viewer/RoomTopicViewer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export const RoomTopicViewer = as<
2929
<Icon src={Icons.Cross} />
3030
</IconButton>
3131
</Header>
32-
<Scroll className={css.ModalScroll} size="300" hideTrack>
32+
<Scroll data-room-topic className={css.ModalScroll} size="300" hideTrack>
3333
<Box className={css.ModalContent} direction="Column" gap="100">
3434
<Text size="T300" className={css.ModalTopic} priority="400">
3535
<Linkify options={LINKIFY_OPTS}>{scaleSystemEmoji(topic)}</Linkify>

src/app/components/user-profile/UserRoomProfile.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ function UserExtendedSection({
180180

181181
{bioContent && (
182182
<Scroll
183+
data-profile-bio
183184
direction="Vertical"
184185
variant="SurfaceVariant"
185186
visibility="Always"

src/app/features/settings/cosmetics/Themes.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ function ThemeSettings() {
305305
<SequenceCard className={SequenceCardStyle} variant="SurfaceVariant" direction="Column">
306306
<SettingTile
307307
title="Underline Links"
308-
description="Always show underlines on links in chat."
308+
description="Always show underlines on links in chat, bios and room descriptions."
309309
after={<Switch variant="Primary" value={underlineLinks} onChange={setUnderlineLinks} />}
310310
/>
311311
</SequenceCard>

src/index.css

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,9 @@ pre {
177177

178178
/* Accessibility Overrides :D */
179179

180-
.force-underline-links a {
180+
.force-underline-links [data-message-id] a:not([data-mention-id]),
181+
.force-underline-links [data-profile-bio] a,
182+
.force-underline-links [data-room-topic] a {
181183
text-decoration: underline !important;
182184
text-decoration-thickness: 1px;
183185
text-underline-offset: 2px;

0 commit comments

Comments
 (0)