SFDigitalServices / formio-sfds

The form.io theme for sf.gov
https://formio-sfds.herokuapp.com/
MIT License
15 stars 2 forks source link

Shared components example, better "language" option support #160

Closed shawnbot closed 3 years ago

shawnbot commented 3 years ago

Three things in this PR:

  1. I added an example that loads our shared components resource directly from form.io
  2. I added the ability to pass form options into examples via the query string so that we can test shared components (and other examples) with different options at runtime
  3. I fixed a bug that was causing the DOM lang attribute to override the language form option, if provided. This was preventing ?language=es (check the "Next" button text) from working in examples.

Fixes #161.

vercel[bot] commented 3 years ago

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/sfds/formio-sfds/9lz91zmas
✅ Preview: https://formio-sfds-git-shared-components-example.sfds.vercel.app

github-actions[bot] commented 3 years ago

Size Change: +934 B (0%)

Total Size: 99.7 kB

Filename Size Change
dist/examples.js 11.5 kB +852 B (7%) 🔍
dist/formio-sfds.standalone.js 68.4 kB +82 B (0%)
ℹī¸ View Unchanged | Filename | Size | Change | | |:--- |:---:|:---:|:---:| | `dist/common.css` | 332 B | 0 B | | | `dist/formio-sfds.css` | 14 kB | 0 B | | | `dist/portal.js` | 5.36 kB | 0 B | |

compressed-size-action