Skip to content

Commit c4b68e9

Browse files
simisonmatticbot
authored andcommitted
Forms: hide after pseudo element in checkbox and radio inputs (#46393)
Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/20455946963 Upstream-Ref: Automattic/jetpack@6e40439
1 parent f6f9b6e commit c4b68e9

File tree

4 files changed

+9
-2
lines changed

4 files changed

+9
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ This is an alpha version! The changes listed here are not final.
1313
- Refactor Feedback_Test.php into 8 focused test classes for better organization and maintainability
1414

1515
### Fixed
16+
- Forms: don't allow ::after pseudo element manipulation on Jetpack Forms radio and checkbox input elements
1617
- Forms: update 'Learn more' link in form notification settings.
1718

1819
## [7.1.0] - 2025-12-22

dist/contact-form/css/grunion-rtl.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/contact-form/css/grunion.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/contact-form/css/grunion.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1060,6 +1060,12 @@ on production builds, the attributes are being reordered, causing side-effects
10601060

10611061
}
10621062

1063+
// don't allow ::after pseudo-element to be displayed for checkboxes and radios
1064+
.contact-form input[type="checkbox"]::after,
1065+
.contact-form input[type="radio"]::after {
1066+
display: none;
1067+
}
1068+
10631069
.contact-form .is-style-list input.consent::before,
10641070
.contact-form .is-style-list input.checkbox::before,
10651071
.contact-form .grunion-field-wrap:not(.is-style-plain) input.checkbox-multiple::before {

0 commit comments

Comments
 (0)