Skip to content

[switch] Update explainer to reflect resolution in #1282 - #1376

Merged
gfellerph merged 7 commits into
openui:mainfrom
gfellerph:main
Sep 2, 2026
Merged

[switch] Update explainer to reflect resolution in #1282#1376
gfellerph merged 7 commits into
openui:mainfrom
gfellerph:main

Conversation

@gfellerph

@gfellerph gfellerph commented Feb 20, 2026

Copy link
Copy Markdown
Collaborator

With the resolution to support the switch attribute proposal, several changes have been introduced to this explainer:

  • Moved to non-active proposals in the navigation
  • Updated introductory paragraph with reasoning for the new resolution
  • Cleaned up Features, Styleability and Accessibility sections and removed switch element references as well as obsolete content
  • Removed open questions as explainer is inactive
  • Added a table of contents, author and last updated field
  • Multiple small fixes like typos and clarifications

Preview: https://deploy-preview-1376--open-ui.netlify.app/components/switch.explainer/

With the resolution to support the switch attribute proposal, several changes have been introduced to this explainer:
- Moved to non-active proposals in the navigation
- Updated introductory paragraph with reasoning for the new resolution
- Cleaned up Features, Styleability and Accessibility sections and removed switch element references as well as obsolete content
- Added a table of contents, author and last updated field
- Multiple small fixes like typos and clarifications
Slightly opinionated style update for content sections.
- Updates header margins to allow for more space between the previous paragraph and the new section to visually distinguish content that belongs together
- Updates bullet and ordered list styles to place the bullet outside and left align multi-line content on the same line
Comment thread site/src/pages/components/switch.explainer.mdx
Comment thread site/src/pages/components/switch.explainer.mdx Outdated
Comment on lines 228 to 233
input[switch]::before {
content: 'ON';
}
input[switch]:lang(de)::before {
content: 'AN';
}

@lukewarlow lukewarlow Feb 20, 2026

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
input[switch]::slider-track {
content: 'ON';
}
input[switch]:lang(de)::slider-track {
content: 'AN';
}

presumably this? Though perhaps actually ::slider-fill because that's what will render on top of the track when the switch is on?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Used ::slider-fill.

```

```css
input[switch]::before {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Again wrong pseudo probably

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also used ::slider-fill here.

gfellerph and others added 2 commits September 2, 2026 22:11
Co-authored-by: Luke Warlow <luke@warlow.dev>
Co-authored-by: Luke Warlow <luke@warlow.dev>
@gfellerph gfellerph reopened this Sep 2, 2026
@gfellerph
gfellerph requested a review from lukewarlow September 2, 2026 20:53
@gfellerph

Copy link
Copy Markdown
Collaborator Author

PR got closed when I updated the fork to resolve merge issues, this was not intended so I hope it's ok if I just re-opened the PR again.

@gfellerph
gfellerph merged commit d28b4e2 into openui:main Sep 2, 2026
5 checks passed
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