File tree Expand file tree Collapse file tree 3 files changed +78
-38
lines changed Expand file tree Collapse file tree 3 files changed +78
-38
lines changed Original file line number Diff line number Diff line change 125125 filter : grayscale (0 ) !important ;
126126 }
127127
128-
128+ label {
129+ display : inline-flex ;
130+ align-items : center ;
131+ gap : 5px ; /* space between radio and text */
132+ }
133+ /* Add a background color to the radio button when focused */
134+ .radio-button :focus {
135+ box-shadow : 0 0 0 4px $nhsuk-yellow !important ;
136+ outline : 0 ;
137+ // box-shadow: 0 0 0 4px rgba(255, 255, 0, 0.5);
138+ }
139+
140+ .radio-button {
141+ appearance : none ;
142+ -webkit-appearance : none ;
143+ width : 24px ;
144+ height : 24px ;
145+ border : 2px solid black ;
146+ border-radius : 50% ;
147+ position : relative ;
148+ cursor : pointer ;
149+ transition : box-shadow 0.3s ;
150+ outline : none ;
151+ }
152+
153+ /* Yellow glow on focus */
154+ .radio-button :focus {
155+ box-shadow : 0 0 0 4px $nhsuk-yellow ; /* yellow circle */
156+ }
157+
158+ /* Inner black dot when selected */
159+ .radio-button :checked ::before {
160+ content : " " ;
161+ position : absolute ;
162+ top : 4px ;
163+ left : 4px ;
164+ width : 12px ;
165+ height : 12px ;
166+ background-color : black ;
167+ border-radius : 50% ;
168+ }
129169 </style >
Original file line number Diff line number Diff line change 610610 gap : 5px ; /* space between radio and text */
611611 margin : 7px ;
612612 }
613-
613+ /* Add a background color to the radio button when focused */
614+ .radio-button :focus {
615+ box-shadow : 0 0 0 4px $nhsuk-yellow !important ;
616+ outline : 0 ;
617+ // box-shadow: 0 0 0 4px rgba(255, 255, 0, 0.5);
618+ }
619+
620+ .radio-button {
621+ appearance : none ;
622+ -webkit-appearance : none ;
623+ width : 24px ;
624+ height : 24px ;
625+ border : 2px solid black ;
626+ border-radius : 50% ;
627+ position : relative ;
628+ cursor : pointer ;
629+ transition : box-shadow 0.3s ;
630+ outline : none ;
631+ }
632+
633+ /* Yellow glow on focus */
634+ .radio-button :focus {
635+ box-shadow : 0 0 0 4px $nhsuk-yellow ; /* yellow circle */
636+ }
637+
638+ /* Inner black dot when selected */
639+ .radio-button :checked ::before {
640+ content : " " ;
641+ position : absolute ;
642+ top : 4px ;
643+ left : 4px ;
644+ width : 12px ;
645+ height : 12px ;
646+ background-color : black ;
647+ border-radius : 50% ;
648+ }
649+
614650 </style >
Original file line number Diff line number Diff line change @@ -249,39 +249,3 @@ form label.nhsuk-u-visually-hidden {
249249 box-shadow : 0 0 0 4px $nhsuk-yellow ;
250250}
251251
252- /* Add a background color to the radio button when focused */
253- .radio-button :focus {
254- box-shadow : 0 0 0 4px $nhsuk-yellow !important ;
255- outline : 0 ;
256- // box-shadow: 0 0 0 4px rgba(255, 255, 0, 0.5);
257- }
258-
259- .radio-button {
260- appearance : none ;
261- -webkit-appearance : none ;
262- width : 24px ;
263- height : 24px ;
264- border : 2px solid black ;
265- border-radius : 50% ;
266- position : relative ;
267- cursor : pointer ;
268- transition : box-shadow 0.3s ;
269- outline : none ;
270- }
271-
272- /* Yellow glow on focus */
273- .radio-button :focus {
274- box-shadow : 0 0 0 4px $nhsuk-yellow ; /* yellow circle */
275- }
276-
277- /* Inner black dot when selected */
278- .radio-button :checked ::before {
279- content : " " ;
280- position : absolute ;
281- top : 4px ;
282- left : 4px ;
283- width : 12px ;
284- height : 12px ;
285- background-color : black ;
286- border-radius : 50% ;
287- }
You can’t perform that action at this time.
0 commit comments