Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
## 5.3.18

- Added vertical tabs. Put the `vertical` class on a `tabs` group to show the tabs in a column beside the panels.
- Fixed `--semanticFormsFocusColor` to meet the 3:1 contrast WCAG asks of a focus indicator.
- Fixed every animation to respect `prefers-reduced-motion`, rather than only the switch.
- Fixed autofilled fields to stay marked as autofilled.
- Fixed `aria-invalid` not being set on a field the stylesheet outlines on `:user-invalid`, so a field the browser considers invalid said nothing to a screen reader unless `setInvalid` had marked it.
- Fixed a help icon's text not reaching a screen reader on a group of checkboxes or radios, where the title sits on the group's label and describes none of the fields.
- Fixed the documentation site having no `color-scheme` meta tag, which made a visitor whose system is dark get a white page before the stylesheets arrived, and not following the system's light or dark setting when it changed while a page was open.
- Fixed `semanticForms.scss` not compiling from the npm package, since the `styles` folder it pulls its partials from was left out of the package. It's now included, and the package declares its Sass entry point, so a Sass stylesheet can `@use "pkg:semantic-forms"` with Sass's Node.js package importer.
- Updated dependencies.

## 5.3.17

- Added `semanticForms.setInvalid(field, message, options)` and `semanticForms.clearInvalid(field)`, which mark a field invalid from your own code with a message saying why.
Expand Down
6 changes: 5 additions & 1 deletion dev-server.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,11 @@ if (!fs.existsSync(path.join(docsDir, 'node_modules'))) run(npm, ['ci'], { cwd:
if (!process.argv.includes('--skip-library-build')) run(npm, ['run', 'build'])

// roosevelt builds the docs site and serves it. development mode is deliberate: production mode sends a content security policy that forbids eval, and the istanbul instrumented bundle that `npm run coverage` builds needs eval in order to run at all. the html validator is turned off because it replaces the page with a report when markup is invalid, which the tests would then be asserting against instead of the demo itself
const server = spawn(process.execPath, ['test-server.js', '--development-mode', '--disable-validator'], {
//
// `--no-frontend-reload` is passed through for the tests, which have no use for live reload and whose navigation can crash its websocket: see playwright.config.js
const serverArgs = ['test-server.js', '--development-mode', '--disable-validator']
if (process.argv.includes('--no-frontend-reload')) serverArgs.push('--no-frontend-reload')
const server = spawn(process.execPath, serverArgs, {
stdio: 'inherit',
env: { ...env, HTTP_PORT: port },
cwd: docsDir
Expand Down
Loading
Loading