question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Does buttonColor support rgba trancparency?

See original GitHub issue

Hey, 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): circles

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:closed
  • Created 7 years ago
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
mastermoocommented, Feb 26, 2017

I fucking hate android. I’ll commit something in the next minutes. Maybe it fixes some of the issues

0reactions
mastermoocommented, Feb 26, 2017

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found