Commit 294b454
committed
fix(ui): Align legal consent checkbox in simple theme
In the simple theme, the legal consent checkbox would display a large
square when wrapped to a second line. This is because it's inside a flex
container which defaults align to `stretch`. Explicitly set it to
`align='start'` to match the behavior of `CheckboxField`.
Some other themes don't have this problem because they set an explicit
height and width. But that approach doesn't seem appropriate for
`simple`. This fix also fixes `neobrutalism` which had the same issue.
This doesn't break existing themes because if you already have a height,
the default align of `stretch` falls back to `start`. I also verified
this visually by checking each theme before and after the change.
Also add `simple` to the Sandbox for easy verification of the fix.1 parent b9eb19d commit 294b454
3 files changed
Lines changed: 13 additions & 1 deletion
File tree
- .changeset
- packages
- clerk-js/sandbox
- ui/src/elements
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
281 | 281 | | |
282 | 282 | | |
283 | 283 | | |
| 284 | + | |
| 285 | + | |
284 | 286 | | |
285 | 287 | | |
286 | 288 | | |
| |||
357 | 359 | | |
358 | 360 | | |
359 | 361 | | |
| 362 | + | |
| 363 | + | |
360 | 364 | | |
361 | 365 | | |
362 | 366 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | | - | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
83 | 86 | | |
84 | 87 | | |
85 | 88 | | |
| |||
0 commit comments