From 2d727342fc3adbf7e9aa4e1b7525aabaed287236 Mon Sep 17 00:00:00 2001 From: Daniel Richards Date: Mon, 9 Jun 2025 17:18:36 +0800 Subject: [PATCH 1/3] Ensure dropdown field native dropdown UI element receives background color on windows --- projects/packages/forms/src/contact-form/css/grunion.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/packages/forms/src/contact-form/css/grunion.css b/projects/packages/forms/src/contact-form/css/grunion.css index 27177878216a..e2c21dc92dc6 100644 --- a/projects/packages/forms/src/contact-form/css/grunion.css +++ b/projects/packages/forms/src/contact-form/css/grunion.css @@ -440,7 +440,7 @@ .contact-form :where( .contact-form__select-element-wrapper ), .contact-form :where( .contact-form__select-wrapper select ) { border: 0 !important; - background: transparent !important; + background: inherit !important; font-family: inherit; font-size: inherit; color: inherit; From faa995370ebe5f3c2285c84da33da367c6099bd4 Mon Sep 17 00:00:00 2001 From: Daniel Richards Date: Mon, 9 Jun 2025 17:26:22 +0800 Subject: [PATCH 2/3] changelog --- .../changelog/fix-dropdown-field-option-background-color | 4 ++++ .../changelog/fix-dropdown-field-option-background-color | 4 ++++ 2 files changed, 8 insertions(+) create mode 100644 projects/packages/forms/changelog/fix-dropdown-field-option-background-color create mode 100644 projects/plugins/jetpack/changelog/fix-dropdown-field-option-background-color diff --git a/projects/packages/forms/changelog/fix-dropdown-field-option-background-color b/projects/packages/forms/changelog/fix-dropdown-field-option-background-color new file mode 100644 index 000000000000..3bc4ca40f741 --- /dev/null +++ b/projects/packages/forms/changelog/fix-dropdown-field-option-background-color @@ -0,0 +1,4 @@ +Significance: patch +Type: fixed + +Forms: Fix dropdown field background color on Windows. diff --git a/projects/plugins/jetpack/changelog/fix-dropdown-field-option-background-color b/projects/plugins/jetpack/changelog/fix-dropdown-field-option-background-color new file mode 100644 index 000000000000..b54009aad75e --- /dev/null +++ b/projects/plugins/jetpack/changelog/fix-dropdown-field-option-background-color @@ -0,0 +1,4 @@ +Significance: patch +Type: bugfix + +Forms: Fix dropdown field background color on Windows. From 72586bace817da78a0b5fdd35b8a9df4e5bd7bb5 Mon Sep 17 00:00:00 2001 From: Daniel Richards Date: Mon, 9 Jun 2025 17:33:45 +0800 Subject: [PATCH 3/3] Also inherit border radius so that the select element doesn't overlap or cut into the wrapper element's border --- projects/packages/forms/src/contact-form/css/grunion.css | 1 + 1 file changed, 1 insertion(+) diff --git a/projects/packages/forms/src/contact-form/css/grunion.css b/projects/packages/forms/src/contact-form/css/grunion.css index e2c21dc92dc6..1f858164a443 100644 --- a/projects/packages/forms/src/contact-form/css/grunion.css +++ b/projects/packages/forms/src/contact-form/css/grunion.css @@ -441,6 +441,7 @@ .contact-form :where( .contact-form__select-wrapper select ) { border: 0 !important; background: inherit !important; + border-radius: inherit !important; font-family: inherit; font-size: inherit; color: inherit;