Merge pull request #157 from SableClient/fix/scope-underline-links
fix: underline links from being applied everywhere
This commit is contained in:
5 files changed
+13
-3
No files matched your search
@@ -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.
|
||||
@@ -29,7 +29,7 @@ export const RoomTopicViewer = as<
|
||||
<Icon src={Icons.Cross} />
|
||||
</IconButton>
|
||||
</Header>
|
||||
<Scroll className={css.ModalScroll} size="300" hideTrack>
|
||||
<Scroll data-room-topic className={css.ModalScroll} size="300" hideTrack>
|
||||
<Box className={css.ModalContent} direction="Column" gap="100">
|
||||
<Text size="T300" className={css.ModalTopic} priority="400">
|
||||
<Linkify options={LINKIFY_OPTS}>{scaleSystemEmoji(topic)}</Linkify>
|
||||
|
||||
@@ -180,6 +180,7 @@ function UserExtendedSection({
|
||||
|
||||
{bioContent && (
|
||||
<Scroll
|
||||
data-profile-bio
|
||||
direction="Vertical"
|
||||
variant="SurfaceVariant"
|
||||
visibility="Always"
|
||||
|
||||
@@ -305,7 +305,7 @@ function ThemeSettings() {
|
||||
<SequenceCard className={SequenceCardStyle} variant="SurfaceVariant" direction="Column">
|
||||
<SettingTile
|
||||
title="Underline Links"
|
||||
description="Always show underlines on links in chat."
|
||||
description="Always show underlines on links in chat, bios and room descriptions."
|
||||
after={<Switch variant="Primary" value={underlineLinks} onChange={setUnderlineLinks} />}
|
||||
/>
|
||||
</SequenceCard>
|
||||
|
||||
+3
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user