Making WordPress.org

Opened 7 weeks ago

Last modified 3 weeks ago

#8241 new defect (bug)

Currency Switcher Dropdown Not Displaying Properly

Reported by: dhrumilk's profile dhrumilk Owned by:
Milestone: Priority: normal
Component: Swag Store (mercantile.wordpress.org) Keywords: has-patch needs-test-info
Cc:

Description

On the https://mercantile.wordpress.org/shop/(https://mercantile.wordpress.org/shop/) page, when users try to switch the currency, the text is not visible because it appears as white text on a white background.

Attachments (2)

wp.png (179.0 KB) - added by dhrumilk 7 weeks ago.
8241-currency-dropdown.patch (448 bytes) - added by darshitrajyaguru97 7 weeks ago.
Patch attached.

Download all attachments as: .zip

Change History (11)

@dhrumilk
7 weeks ago

#1 follow-up: @mikinc860
7 weeks ago

You can resolve this issue by explicitly setting the text color for the dropdown options using CSS. Add the following snippet to your custom CSS:

css
.currency-switcher-holder select option {
    color: #000000;
}

This ensures that the option text remains visible and does not inherit unwanted styles from the theme or other plugins.

#2 in reply to: ↑ 1 @darshitrajyaguru97
7 weeks ago

Replying to mikinc860:

You can resolve this issue by explicitly setting the text color for the dropdown options using CSS. Add the following snippet to your custom CSS:

css
.currency-switcher-holder select option {
    color: #000000;
}

This ensures that the option text remains visible and does not inherit unwanted styles from the theme or other plugins.

This is working correctly. After applying this style filter, the options are clearly visible.

@darshitrajyaguru97
7 weeks ago

Patch attached.

#3 @darshitrajyaguru97
7 weeks ago

  • Keywords has-patch needs-testing added; needs-patch removed

Patch attached. Tested in WordPress Playground using Mercantile blueprint. Fix ensures dropdown options are readable.

#4 @dilip2615
6 weeks ago

  • Keywords needs-patch added; has-patch removed

Hello @dhrumilk

We can fix this by setting the dropdown option text color via CSS. Add this to your custom CSS:

.currency-switcher-holder select option {
   color: #000000;
}

I think it is helpful for this bug issue.

#5 @dilip2615
6 weeks ago

Hello @dd32(Dion Hulse)
Could you please verify it?

#6 follow-up: @dd32
6 weeks ago

  • Priority changed from high to normal

No. Please don't ping for people to look at things :)

I can't duplicate it though.

This is browser/os-specific, something that was not included in the original report.

I've passed this along to those who work on it.

#7 in reply to: ↑ 6 @dilip2615
6 weeks ago

Extremely Sorry @dd32 , I will keep this thing in my mind.
I will never repeat this type of mistake.

Thank you 😊 🙏

Replying to dd32:

No. Please don't ping for people to look at things :)

I can't duplicate it though.

This is browser/os-specific, something that was not included in the original report.

I've passed this along to those who work on it.

#8 @dhruvishah2203
3 weeks ago

  • Keywords needs-testing needs-patch removed

I have verified this page, and it seems to look good.

#9 @dhrumilk
3 weeks ago

  • Keywords has-patch needs-test-info added
Note: See TracTickets for help on using tickets.