File tree 2 files changed +15
-1
lines changed
2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
8
8
## [ Unreleased]
9
9
10
- - Nothing yet!
10
+ ### Fixed
11
+
12
+ - Use normal ` checkbox ` and ` radio ` appearance in ` forced-colors ` mode ([ #152 ] ( https://github.com/tailwindlabs/tailwindcss-forms/pull/152 ) )
11
13
12
14
## [ 0.5.6] - 2023-08-28
13
15
Original file line number Diff line number Diff line change @@ -251,6 +251,10 @@ const forms = plugin.withOptions(function (options = { strategy: undefined }) {
251
251
'background-image' : `url("${ svgToDataUri (
252
252
`<svg viewBox="0 0 16 16" fill="white" xmlns="http://www.w3.org/2000/svg"><path d="M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z"/></svg>`
253
253
) } ")`,
254
+
255
+ '@media (forced-colors: active) ' : {
256
+ appearance : 'auto' ,
257
+ } ,
254
258
} ,
255
259
} ,
256
260
{
@@ -260,6 +264,10 @@ const forms = plugin.withOptions(function (options = { strategy: undefined }) {
260
264
'background-image' : `url("${ svgToDataUri (
261
265
`<svg viewBox="0 0 16 16" fill="white" xmlns="http://www.w3.org/2000/svg"><circle cx="8" cy="8" r="3"/></svg>`
262
266
) } ")`,
267
+
268
+ '@media (forced-colors: active) ' : {
269
+ appearance : 'auto' ,
270
+ } ,
263
271
} ,
264
272
} ,
265
273
{
@@ -292,6 +300,10 @@ const forms = plugin.withOptions(function (options = { strategy: undefined }) {
292
300
'background-size' : `100% 100%` ,
293
301
'background-position' : `center` ,
294
302
'background-repeat' : `no-repeat` ,
303
+
304
+ '@media (forced-colors: active) ' : {
305
+ appearance : 'auto' ,
306
+ } ,
295
307
} ,
296
308
} ,
297
309
{
You can’t perform that action at this time.
0 commit comments