Skip to content

Commit

Permalink
Contact Form: add focus state to radio buttons and checkboxes (#34408)
Browse files Browse the repository at this point in the history
  • Loading branch information
monsieur-z authored Dec 1, 2023
1 parent 83fc4d6 commit 82c17f3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: fixed

Contact Form: add focus state to radio buttons and checkboxes
10 changes: 4 additions & 6 deletions projects/packages/forms/src/contact-form/css/grunion.css
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,7 @@ on production builds, the attributes are being reordered, causing side-effects
--field-padding: calc(var(--label-left) - var(--jetpack--contact-form--border-size));
}

.contact-form .is-style-animated .grunion-field-wrap input {
.contact-form .is-style-animated .grunion-field-wrap input:not([type="checkbox"]):not([type="radio"]) {
outline: none;
}

Expand Down Expand Up @@ -634,17 +634,15 @@ on production builds, the attributes are being reordered, causing side-effects
.contact-form .grunion-field-wrap input.checkbox-multiple,
.contact-form .grunion-field-wrap input.radio {
align-items: center;
all: initial;
appearance: none;
color: var(--jetpack--contact-form--text-color);
display: flex !important;
border: none;
font-size: var(--jetpack--contact-form--font-size);
font-family: var(--jetpack--contact-form--font-family);
height: var(--jetpack--contact-form--font-size);
justify-content: center;
margin: 0 10px 0 0;
outline: none;
padding: 0;
position: relative;
width: var(--jetpack--contact-form--font-size);
}
Expand Down Expand Up @@ -689,11 +687,11 @@ on production builds, the attributes are being reordered, causing side-effects
border-radius: 50%;
content: '';
height: 0.5em;
margin-left: 50%;
margin-top: 50%;
position: absolute;
transform: translate(-50%, -50%);
width: 0.5em;
top: calc(var(--jetpack--contact-form--font-size) / 2);
inset-inline-start: calc(var(--jetpack--contact-form--font-size) / 2);
}

.contact-form .grunion-field-wrap.is-style-button-wrap .grunion-checkbox-multiple-label,
Expand Down

0 comments on commit 82c17f3

Please sign in to comment.