Skip to content

[6.x] Bard fields use language for fields, browser direction for labels/instructions#14893

Closed
edalzell wants to merge 9 commits into
statamic:6.xfrom
edalzell:fix/ltr-bard-field-labels
Closed

[6.x] Bard fields use language for fields, browser direction for labels/instructions#14893
edalzell wants to merge 9 commits into
statamic:6.xfrom
edalzell:fix/ltr-bard-field-labels

Conversation

@edalzell

Copy link
Copy Markdown
Contributor

Noticed that the bard fields had all text, including the labels etc where ltr, even when the browser is set to ltr.

I think it's better to have those based on the browser.

Not sure if this should be configurable?

@edalzell edalzell changed the title Use browser direction for field data only [6.x] Use browser direction for Bard field data only Jun 29, 2026
@edalzell edalzell changed the title [6.x] Use browser direction for Bard field data only [6.x] Bard fields use language for fields, browser direction for labels/instructions Jun 29, 2026
jasonvarga and others added 5 commits July 13, 2026 18:00
Watch the documentElement dir attribute with a shared MutationObserver so
the computed updates live when the direction changes, rather than reading a
non-reactive DOM property once.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Reuse useUiDirection for the fallback so the site direction still takes
precedence but the browser/UI direction logic lives in one place.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Return the direction under a `direction` key so consuming components can
bind it directly. Container aliases it to keep its own combined direction.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Make the direction composable available to addons via the core export, so
they can respect the control panel UI direction in custom components.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@jasonvarga

Copy link
Copy Markdown
Member

Gonna hit this from a different angle.

@jasonvarga jasonvarga closed this Jul 15, 2026
@edalzell
edalzell deleted the fix/ltr-bard-field-labels branch July 15, 2026 22:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants