Does buttonColor support rgba trancparency?
See original GitHub issueHey, really great component, big thanks first of all!
Strange issue with custom icon component in ActionButton.Item I have this result (unwanted transparent circles are marked with red arrows):
With this code:
<ActionButton
buttonColor='rgba(104, 231, 60, 0.35)'
offsetY={10} spacing={10}
onLongPress={this.props.all}
size={button}
>
<ActionButton.Item
buttonColor='rgba(90, 141, 242, 0.35)'
onPress={this.props.male}
size={button}
>
<Image source={require('a_resources/icons/male.png')}
style={{
height: 20,
width: 20,
}}
/>
</ActionButton.Item>
<ActionButton.Item
buttonColor='#f05757'
onPress={this.props.female}
size={button}>
<FemaleButtonIcon />
</ActionButton.Item>
</ActionButton>
FemaleButtonIcon is just a wrapper for similar to affected one - it contains the same Image component
So in both buttons where buttonColor set as rgba with transparency are these circles. With solid color set there is no issues. Does buttonColor support rgba trancparency? Or did I miss something?
Issue Analytics
- State:
- Created 7 years ago
- Comments:11 (6 by maintainers)
Top Results From Across the Web
Anyone help about transparency button color - Discuss
i tried this rgba color on button but when i live testing this transparent color is not match button color is white ....
Read more >How to make CSS button appear transparent - Stack Overflow
Transparency is determined by the alpha channel. For example, .button{ background-color: rgba(0,0,0,1); // red, green, blue, alpha }.
Read more >RGBa Browser Support | CSS-Tricks
RGBa is a way to declare a color in CSS that includes alpha transparency support. It looks like this:
Read more >Switch-checked-track-color has a semi transparent color on top?
Conclusion: it is better to use your card mod, especially since Home Assistant supports light/dark themes that might result in strange colors.
Read more >An argument against CSS opacity - TPGi
The alpha channel is an additional value that you can set when you define colors for parts of an element (such as its...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I fucking hate android. I’ll commit something in the next minutes. Maybe it fixes some of the issues
In v2.6.0 the overall appearance should look fine on android. The transparency bug couldn’t be fixed, however. I think this issue is far bigger than this library.