#staszek4957_code
1 messages ¡ Page 1 of 1 (latest)
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
đ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1336621893838438431
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- staszek4957_code, 12 hours ago, 14 messages
The second screnshot shows the issue. The icon has a variable colour and does not change like the text when the hover is on the tab. const appearance: Appearance = {
theme: 'stripe',
variables: {
colorPrimary: '#1A6673',
colorText: '#7a7a7a',
iconColor: '#7a7a7a',
colorIconTabSelected: '#1A6673',
fontFamily: 'Mulish, Arial, Helvetica, sans-serif'
},
rules: {
'.Tab': {
color: 'var(--colorText)',
backgroundColor: '#f5f5f5',
fontWeight: 'bold'
},
'.Tab--selected': {
color: '#ffffff',
backgroundColor: 'var(--colorPrimary)',
fontWeight: 'bold'
},
'.Tab--selected:hover': {
color: '#7a7a7a',
backgroundColor: '#E5EBF0',
fill: '#7a7a7a' // This does not change the icon color
},
'.TabIcon:hover': {
fill: '#7a7a7a' // This works, but I need hover on Tab, not Icon
}
}
};
It seems like by default the --selected:hover color is the same as --selected. I am not sure you can override that.
Do you think something else overrides the color of the icon? It should be controlled by color, not fill though.
no, I dont have the other styles.
The fill is defined in .p-TabIcon--selected. But I am not sure how to override it.
I think the limitation is that selected tabs are not supposed to react to :hover.
I would suggest reporting it to Stripe Support: https://support.stripe.com/?contact=true