다크 테마에서 신용카드 플레이스홀더 텍스트가 검게 보입니다

I’m trying to figure out how to customise the color of the text in the credit card input field. It currently doesn’t work on dark themes for me (black on dark grey).

Using the following in the custom CSS for the theme isn’t working. Any advice would be much appreciated!

input.InputElement[name="cardnumber"] {
    color: white;
}

I don’t seem to be able to select the element at all, I’ve tried various permutation of CSS selectors.

테스트 사이트에서도 같은 문제가 발생합니다:

이 문제를 Contribute > UX 채널로 옮겨서 관심을 끌게 했습니다. :+1:

단기적인 해결책으로 플레이스홀더 텍스트를 어떻게 타겟팅할 수 있을지 모르겠지만, CSS에 더詳しい한 누군가가 도와주길 바랍니다. :crossed_fingers:

1개의 좋아요

We were struggling getting a consistent repro on this, but I think we’ve narrowed it down to Firefox browser (the placeholder text is grey in Chrome, for instance). Does this track with what you’ve been experiencing?

1개의 좋아요

Hi @cwbc :slightly_smiling_face:

This has now been fixed. :+1: If you update your plugin you should see the change.

https://github.com/discourse/discourse-subscriptions/pull/124

5개의 좋아요

This topic was automatically closed after 5 days. New replies are no longer allowed.