Skip to content
Closed
Changes from 1 commit
Commits
Show all changes
81 commits
Select commit Hold shift + click to select a range
c6d19fb
Add ‘useFormClasses’ plugin option
chasegiunta Jan 29, 2021
e84f83f
Fix leftover
chasegiunta Jan 29, 2021
2635e54
Merge branch 'master' of https://github.com/tailwindlabs/tailwindcss-…
chasegiunta Mar 23, 2021
4231d49
Merge pull request #58 from tailwindlabs/add-license-1
adamwathan Mar 24, 2021
1d8f79d
Update Tailwind, fix checkbox example
adamwathan Nov 17, 2020
8304072
Add simple dev server
adamwathan Nov 17, 2020
63c9664
Remove aggressive border override
adamwathan Nov 17, 2020
0aa2921
Update changelog
adamwathan Nov 17, 2020
571d9d7
0.2.1
adamwathan Nov 17, 2020
810b807
Merge branch 'master' of https://github.com/tailwindlabs/tailwindcss-…
chasegiunta Mar 24, 2021
b221e81
Rename option to `strategy` with `base` & `class` options
chasegiunta Mar 25, 2021
5ec6608
Use .form-multiselect & .form-file classes where applicable
chasegiunta Mar 25, 2021
fbfe0ee
Refactor for more a maintainable approach with selector strategy
chasegiunta Mar 25, 2021
5f18069
Update README.md
chasegiunta Mar 25, 2021
456cfd1
Update README.md
chasegiunta Mar 26, 2021
ab4790d
Add classes to kitchen sink for testing
adamwathan Mar 26, 2021
3bfbd1a
Add default options
adamwathan Mar 26, 2021
224e966
Use single addBase call
adamwathan Mar 26, 2021
2626d3e
Don't add "undo" styles when using class strategy
adamwathan Mar 26, 2021
2779a67
Update README
adamwathan Mar 26, 2021
39f6a3d
Merge branch 'chasegiunta-master'
adamwathan Mar 26, 2021
4b170dd
Update changelog
adamwathan Mar 26, 2021
241613f
0.3.0
adamwathan Mar 26, 2021
6abf160
Fix default strategy
Xenonym Mar 26, 2021
630a9d6
Merge pull request #61 from Xenonym/patch-1
adamwathan Mar 26, 2021
c9e3218
Update changelog
adamwathan Mar 26, 2021
48bd970
0.3.1
adamwathan Mar 26, 2021
b4c4e03
Filter null rules
adamwathan Mar 26, 2021
cf37807
Update 1.bug_report.yml
adamwathan Apr 8, 2021
4c083b6
Update 1.bug_report.yml
RobinMalfait Apr 20, 2021
c6a2ff4
removing the `issue_body` key
simonswiss Apr 20, 2021
7970ffd
Update 1.bug_report.yml
adamwathan May 24, 2021
8ea3430
Update 1.bug_report.yml
adamwathan May 24, 2021
e8a287e
Fix :checked typo
chasegiunta Jun 1, 2021
1f0a7c8
Merge pull request #72 from chasegiunta/master
adamwathan Jun 3, 2021
e88eda2
Update changelog
adamwathan Mar 26, 2021
885034f
0.3.2
adamwathan Mar 26, 2021
d1613f9
Update CHANGELOG
adamwathan Jun 3, 2021
6f951b2
0.3.3
adamwathan Jun 3, 2021
e926598
Update index.html
adamwathan Jun 20, 2021
39946dd
Update kitchen-sink.html
adamwathan Jun 20, 2021
241ac86
add default box shadow reset
RobinMalfait Sep 16, 2021
a7680e8
Remove duplicate variable declaration
adamwathan Sep 21, 2021
add1126
Merge pull request #81 from tailwindlabs/add-box-shadow-reset
adamwathan Sep 21, 2021
c3ea323
Update changelog
adamwathan Sep 21, 2021
457b558
0.3.4
reinink Sep 28, 2021
3d8b485
Update changelog
reinink Sep 28, 2021
93857e1
Pull colors from tailwindcss/colors, not defaultTheme
adamwathan Sep 30, 2021
61902f6
Merge pull request #83 from tailwindlabs/update-colors
adamwathan Sep 30, 2021
12c53c3
Update demo to use v3
adamwathan Oct 1, 2021
a7705a9
0.4.0-alpha.1
adamwathan Oct 1, 2021
1c926a2
add release-insiders build
RobinMalfait Oct 4, 2021
491a834
Merge pull request #84 from tailwindlabs/release-insiders
RobinMalfait Oct 5, 2021
ce5386b
Remove dependency on old `outline.none` config value
reinink Oct 27, 2021
2bd8f7e
Merge pull request #89 from tailwindlabs/outline-none-fix
reinink Oct 27, 2021
df8ac72
update changelog
RobinMalfait Dec 9, 2021
e8e01c3
0.4.0
RobinMalfait Dec 9, 2021
533f0ce
Remove `dist` folder and related dependencies (#96)
RobinMalfait Dec 15, 2021
becd3b2
Update supported tailwind version in README (#99)
cornips Jan 20, 2022
e17d25f
Add autoprefixer and postcss as dev deps
thecrypticace Jan 20, 2022
bb5315c
Update LICENSE
adamwathan Feb 5, 2022
807cd40
Use `addComponents` for class strategy (#91)
f15u Feb 23, 2022
d7b1a9a
update changelog
RobinMalfait Feb 23, 2022
0b1e872
Update README.md
bradlc Feb 25, 2022
1bd06b1
Update kitchen sink markup
adamwathan Feb 28, 2022
99fbd47
Fix extra height on Safari date/time inputs (#109)
thecrypticace Mar 1, 2022
2eb6f96
Update changelog
thecrypticace Mar 2, 2022
9a0c0e4
0.4.1
thecrypticace Mar 2, 2022
1871f90
Generate both global styles and classes by default (#71)
sanscheese Mar 2, 2022
c74eecc
Update changelog
thecrypticace Mar 2, 2022
3103e33
0.5.0
thecrypticace Mar 2, 2022
37912e9
Fix for multiple Select (#113)
labnol Apr 17, 2022
01edbb6
Remove duplicate `outline` property (#116)
thecrypticace May 2, 2022
203d454
Fix autoprefixer warning about `color-adjust` (#115)
thecrypticace May 2, 2022
639211c
update changelog
thecrypticace May 3, 2022
0894508
0.5.1
thecrypticace May 3, 2022
7ef7a14
Dummy change to make insider builds happy
thecrypticace May 3, 2022
c763df9
Add type declaration (#118)
RobinMalfait May 18, 2022
471c040
update changelog
RobinMalfait May 18, 2022
88c2ba7
update changelog
RobinMalfait May 18, 2022
19e4dda
0.5.2
RobinMalfait May 18, 2022
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
Prev Previous commit
Next Next commit
Use .form-multiselect & .form-file classes where applicable
  • Loading branch information
chasegiunta committed Mar 25, 2021
commit 5ec6608c6dc7a6326d6cd5e7e2a1cb4ae3965cb8
8 changes: 4 additions & 4 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const forms = plugin.withOptions(function (options) {
}

const baseSelectors = {
class: '.form-input, .form-textarea, .form-select',
class: '.form-input, .form-textarea, .form-select, .form-multiselect',
base:
"[type='text'],[type='email'], [type='url'], [type='password'], [type='number'], [type='date'], [type='datetime-local'], [type='month'], [type='search'], [type='tel'], [type='time'], [type='week'], [multiple], textarea, select",
}
Expand Down Expand Up @@ -81,7 +81,7 @@ const forms = plugin.withOptions(function (options) {
'color-adjust': `exact`,
},

[swap(`[multiple]`, `.form-select[multiple], .form-input[multiple]`)]: {
[swap(`[multiple]`, `.form-multiselect, .form-input[multiple]`)]: {
'background-image': 'initial',
'background-position': 'initial',
'background-repeat': 'unset',
Expand Down Expand Up @@ -180,7 +180,7 @@ const forms = plugin.withOptions(function (options) {
'background-color': 'currentColor',
},

[swap(`[type='file']`, `.form-input[type='file']`)]: {
[swap(`[type='file']`, `.form-file`)]: {
background: 'unset',
'border-color': 'inherit',
'border-width': '0',
Expand All @@ -190,7 +190,7 @@ const forms = plugin.withOptions(function (options) {
'line-height': 'inherit',
},

[swap(`[type='file']:focus`, `.form-input[type='file']:focus`)]: {
[swap(`[type='file']:focus`, `.form-file:focus`)]: {
outline: `1px solid ButtonText`,
outline: `1px auto -webkit-focus-ring-color`,
},
Expand Down