Lea Verou
4852f5614f
Use variant helper to simplify badge styles
2024-12-17 02:22:28 -05:00
Lea Verou
87621ef109
Rename variant color tokens to be wa- prefixed, since we specify them on :root too
2024-12-17 02:22:08 -05:00
Lea Verou
6a9c7dd2bc
Merge branch 'next' of https://github.com/shoelace-style/webawesome into next
2024-12-17 02:03:06 -05:00
Lea Verou
27c58637eb
Revamp button styles
...
- More style sharing between native buttons & button component
- Fix radio button styling
- Better ability to style button from the outside (without `::part(base)`)
- Orthogonal variant + appearance
2024-12-17 02:02:30 -05:00
Lea Verou
426a242d26
Define button-group util and use it in button-group and radio-group
2024-12-17 01:57:48 -05:00
Lea Verou
7a7a7abe78
Add size & variant utils to Applied CSS
2024-12-17 01:55:17 -05:00
Lea Verou
aade89b66e
Remove unused class
2024-12-17 01:54:32 -05:00
lindsaym-fa
74ae758819
Add native input styles and share with <wa-input>
2024-12-16 19:32:35 -05:00
Lea Verou
5e2081451d
Add --space-smaller to size utility
2024-12-16 15:41:33 -05:00
Lea Verou
1ffdc19305
Add variants.css (not yet linked from anywhere)
2024-12-16 15:41:33 -05:00
Lea Verou
6996d17531
Replace font-size variable with 1em
...
Revert "Replace font-size variable with `1em`"
This reverts commit 1ac70f31abe2bab310bbfbdbb3aa5d4498c5648d.
Replace font-size vars with 1em when calculating form control height
2024-12-16 15:41:33 -05:00
Cory LaViska
1e3b93d579
Merge branch 'next' of https://github.com/shoelace-style/webawesome into next
2024-12-16 14:38:25 -05:00
Cory LaViska
70fab26e6b
empty styles for these components
2024-12-16 14:38:22 -05:00
Lea Verou
6d4c8e5942
Simplify Classic theme using the new CSS files
2024-12-16 13:21:27 -05:00
Lea Verou
b6e0ca5d45
--*-multiplier to --*-scale
...
As discussed with @lindsaym-fa
Co-Authored-By: Lindsay M <126139086+lindsaym-fa@users.noreply.github.com >
2024-12-16 12:50:37 -05:00
Lea Verou
35571c1d4e
Merge branch 'next' of https://github.com/shoelace-style/webawesome into next
2024-12-16 12:46:59 -05:00
Lea Verou
82a5aff8db
Split default theme tokens into separate CSS files
...
As discussed with @lindsaym-fa last week. Hopefully this will eventually help reduce duplication across themes.
Co-Authored-By: Lindsay M <126139086+lindsaym-fa@users.noreply.github.com >
2024-12-16 12:46:57 -05:00
Cory LaViska
e74a30f62a
prettier
2024-12-16 12:45:25 -05:00
Lindsay M
11d3a73f05
Add native button styles and share with <wa-button> ( #310 )
2024-12-16 12:18:45 -05:00
Lea Verou
9fefb6d65a
[Native details] Refactor to use nesting and opt-out
...
Rel #300
2024-12-16 11:51:40 -05:00
Lea Verou
f739c6c143
Fix details tests
2024-12-16 11:17:58 -05:00
Lea Verou
9739aceb9f
Fix select tests
2024-12-16 11:16:42 -05:00
Lea Verou
666f1e5d52
Fix #309 for reals this time
2024-12-16 11:13:07 -05:00
Lea Verou
1013e83032
[Details] Fix interactive elements in summary, closes #309
2024-12-16 11:10:13 -05:00
Lea Verou
b15d938c7e
Merge branch 'next' of https://github.com/shoelace-style/webawesome into next
2024-12-16 10:49:09 -05:00
Lea Verou
c066c5f30b
[Details] Revamp CSS, simplify part names
...
First component to use the `display: contents` trick discussed in #207
2024-12-16 10:48:56 -05:00
Cory LaViska
ee0167a059
fix jsdoc
2024-12-16 10:29:46 -05:00
Lea Verou
699595496e
[Page] CSS utilities: .wa-mobile-only and .wa-desktop-only
2024-12-16 07:55:28 -05:00
Lea Verou
fa42764a4b
Automatically hide [data-toggle-nav] on desktop view
2024-12-16 07:53:35 -05:00
Lea Verou
9423178df5
Tweaks to <details> styles
2024-12-16 07:18:02 -05:00
Lea Verou
9260d35b4c
Split Applied CSS out to make it easier to manage and share w/ components
...
As discussed with @lindsaym-fa
Still unsure about some of these (especially about whether blockquote & details should be separate) but I figured better go ahead and split and we can fine tune later
Co-Authored-By: Lindsay M <126139086+lindsaym-fa@users.noreply.github.com >
2024-12-16 06:55:01 -05:00
Lea Verou
d0574677c1
Fix a couple types that were throwing off the CEM
2024-12-14 20:29:29 -05:00
Lea Verou
7b0274a657
Refactor: Normalize order of alternatives
2024-12-14 19:51:04 -05:00
Lea Verou
325eaeb225
[select] Mark getTag as attribute: false
2024-12-14 19:10:30 -05:00
Lea Verou
f9590195a5
Refactor: Revamp select styles
...
- Removed BEM-style naming (the shadow DOM gives you scoping already!)
- Use new size helper
- Organize styles to keep an element’s styles together, using nesting for modifiers
- Removed unused classes
2024-12-14 17:35:50 -05:00
Lea Verou
53eb0d8f30
Refactor: [textarea] Use size util
2024-12-14 17:12:22 -05:00
Lea Verou
b0c4c7263b
Allow Prettier default for trailing commas, run Prettier on repo
...
per convo with @claviska
2024-12-14 17:10:26 -05:00
Lea Verou
b5d1a71f46
Simplify hint slots
2024-12-14 17:04:42 -05:00
Lea Verou
dd7b673328
Run Prettier on repo
...
Turns out `prettier-plugin-organize-imports` sorts imports differently than the old one so this will prevent spreading the change across multiple commits whenever we touch a file (and potentially introducing conflicts)
2024-12-14 17:01:35 -05:00
Lea Verou
9f0276f55e
Introduce size shadow utils and use them with checkbox (more to come)
2024-12-14 16:34:53 -05:00
Lea Verou
15d250b103
Refactor: [select.css] more CSS nesting
2024-12-14 15:46:59 -05:00
Lea Verou
0c40579be4
Split visually hidden into a separate file that components can import
2024-12-14 15:30:51 -05:00
Lea Verou
f0f080a428
Refactor: [select, input] Use CSS Nesting
2024-12-13 19:20:54 -05:00
Lea Verou
54b511b709
Collapse weird pill rules duplicating values
2024-12-13 18:57:45 -05:00
Lea Verou
c50da3429b
Refactor: Collapse 3 rules doing the same thing
2024-12-13 17:32:34 -05:00
Lea Verou
ad3cd289dd
Merge branch 'next' of https://github.com/shoelace-style/webawesome into next
2024-12-13 17:17:48 -05:00
Lea Verou
b1fffc7df9
Refactor: checkbox
...
- Reduce class names by using `:has()`, native pseudo-classes, or `[part~=foo]` selectors
- Remove `hasFocus` property since it’s no longer needed
- Move the icon hiding logic to CSS
2024-12-13 17:17:45 -05:00
Lea Verou
587db10022
Refactor: reduce duplication in form-controls.css
2024-12-13 17:14:15 -05:00
Lea Verou
47294ad0ed
Leftover help-text ➡️ hint
2024-12-13 17:09:23 -05:00
lindsaym-fa
07d15fd863
fix references to utility files
2024-12-13 14:43:43 -05:00