-
-
Notifications
You must be signed in to change notification settings - Fork 536
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[5.x] Radio Fieldtype gets custom button icons (#10453)
Radio Fieldtype gets custom button icons This gives us better control over contrast, dark/light, and disabled states — something native HTML cannot do, sadly. Closes #10427.
- Loading branch information
1 parent
9b3ff54
commit 558cd4f
Showing
5 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
.radio-fieldtype label { | ||
@apply flex; | ||
} | ||
|
||
.radio-fieldtype input[type="radio"] { | ||
@apply m-0 min-w-0 absolute opacity-0 -z-1 w-1 h-px w-px overflow-hidden; | ||
} | ||
|
||
.radio-fieldtype .radio-icon { | ||
@apply cursor-pointer h-4 w-4 ltr:mr-2 rtl:ml-2 block; | ||
} | ||
|
||
.radio-fieldtype .option.disabled { | ||
.radio-icon { | ||
@apply cursor-not-allowed opacity-25; | ||
} | ||
label { | ||
@apply cursor-text; | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.