Skip to content

Commit dcba445

Browse files
committed
Refactor text-offset to text-content-offset
1 parent c9b9ace commit dcba445

14 files changed

Lines changed: 17 additions & 15 deletions

File tree

‎_TODO.md‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,8 +219,7 @@ Singles: --color-error, --color-error-bg, --color-error-border, --color-error-te
219219
Tailwind Color Utilities Not Backed By Theme Tokens (quoted class strings)
220220
High-frequency / likely broken given the @theme contract:
221221
222-
(47): e.g. index.astro:20
223-
text-offset (13): e.g. index.astro:39
222+
text-content-offset (13): e.g. index.astro:39
224223
bg-primary-bg (7): e.g. index.astro:67
225224
stroke-text (not a theme token) (seen in class attrs): e.g. index.astro:94
226225
bg-text (2): index.astro:111, index.spec.ts:299

‎src/components/Avatar/index.astro‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ const avatarAlt = name
5353
/>
5454
) : (
5555
<div
56-
class="avatar-placeholder bg-spotlight w-16 h-16 rounded-full flex items-center justify-center text-offset"
56+
class="avatar-placeholder bg-spotlight w-16 h-16 rounded-full flex items-center justify-center text-content-offset"
5757
role="img"
5858
aria-label={name}
5959
>

‎src/components/Breadcrumbs/index.astro‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,12 @@ const breadcrumbSchema =
3636
breadcrumbs.length > 1 && (
3737
<div class="mx-auto max-w-300 w-[90%] mt-4">
3838
<nav aria-label="Breadcrumbs" class="breadcrumbs pl-8">
39-
<ol class="flex items-center space-x-2 text-sm text-offset">
39+
<ol class="flex items-center space-x-2 text-sm text-content-offset">
4040
{breadcrumbs.map((item, index) => (
4141
<li class="flex items-center">
4242
{index > 0 && (
4343
<svg
44-
class="w-4 h-4 mx-2 text-offset opacity-60"
44+
class="w-4 h-4 mx-2 text-content-offset opacity-60"
4545
fill="none"
4646
stroke="currentColor"
4747
viewBox="0 0 24 24"

‎src/components/CallToAction/Featured/index.astro‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ const titleId = `${id}-title`
7070
>
7171
{title}
7272
</h3>
73-
<p class="text-base md:text-lg text-offset mb-8 leading-relaxed">
73+
<p class="text-base md:text-lg text-content-offset mb-8 leading-relaxed">
7474
{description}
7575
</p>
7676
<Button

‎src/components/Carousel/index.astro‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ const carouselId = `carousel-${type}-${variant}-${currentSlug}`
7575
{item.data.title}
7676
</h3>
7777
{item.data.description && (
78-
<p class="text-offset leading-relaxed text-sm">{item.data.description}</p>
78+
<p class="text-content-offset leading-relaxed text-sm">{item.data.description}</p>
7979
)}
8080
<div class="mt-4 flex items-center text-primary text-sm font-medium opacity-0 group-hover:opacity-100 transition-opacity">
8181
<span>Learn more</span>

‎src/components/Forms/Download/index.astro‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const downloadUrl = `/downloads/${fileName}`
2222
<h3 class="text-xl md:text-2xl font-semibold mb-2">
2323
Download {title}
2424
</h3>
25-
<p class="text-offset">
25+
<p class="text-content-offset">
2626
Fill out the form below to receive your {fileType.toLowerCase()} instantly.
2727
</p>
2828
</div>

‎src/components/Hero/Home/content.astro‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ const { pretitle, benefits, primaryLink, secondaryLink } = Astro.props as Props
4242
{
4343
benefits && benefits.length > 0 && (
4444
<div class="bg-page-base-offset rounded-2xl p-6 md:p-8 border border-trim">
45-
<div class="text-sm font-semibold text-offset mb-4 uppercase tracking-wide">Up to:</div>
45+
<div class="text-sm font-semibold text-content-offset mb-4 uppercase tracking-wide">Up to:</div>
4646
<ul class="space-y-4">
4747
{benefits.map(benefit => (
4848
<li class="flex items-start gap-3">

‎src/pages/testing/carousel.astro‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const pagePath = '/testing/carousel'
99
---
1010

1111
<BaseLayout pageTitle={pageTitle} path={pagePath} description={pageDescription} noindex>
12-
<section class="mx-auto mb-12 max-w-3xl space-y-4 text-lg text-offset">
12+
<section class="mx-auto mb-12 max-w-3xl space-y-4 text-lg text-content-offset">
1313
<p>
1414
This route exists exclusively for automated testing and manual inspections of the carousel. It
1515
renders the production carousel component inside a stable shell so tests no longer rely on

‎src/pages/testing/consent-preferences.astro‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const pagePath = '/testing/consent-preferences'
99
---
1010

1111
<BaseLayout pageTitle={pageTitle} path={pagePath} description={pageDescription} noindex>
12-
<section class="mx-auto mb-10 max-w-3xl space-y-4 text-lg text-offset">
12+
<section class="mx-auto mb-10 max-w-3xl space-y-4 text-lg text-content-offset">
1313
<p>
1414
This route renders the production consent preferences modal in isolation so automated tests
1515
can interact with its web component without relying on marketing content or feature flags.

‎src/pages/testing/environment-api.astro‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const scriptContent = `window.environmentApiSnapshot = ${JSON.stringify(snapshot
2424
---
2525

2626
<BaseLayout pageTitle={pageTitle} path={pagePath} description={pageDescription} noindex>
27-
<section class="mx-auto mb-6 max-w-3xl space-y-3 text-lg text-offset">
27+
<section class="mx-auto mb-6 max-w-3xl space-y-3 text-lg text-content-offset">
2828
<p>
2929
Use this fixture to validate the server-side environment helpers without relying on marketing
3030
pages.

0 commit comments

Comments
 (0)