-
Notifications
You must be signed in to change notification settings - Fork 24.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Background color visible through the border of a border radius #904
Comments
Hi there! Try setting |
@frostney - does this still occur on 0.4.0 for you? I can only reproduce this when I have some other item inside, eg: , which inherits the background colour of the parent by default and does not have border radius and so it appears to be outside of the rounded corner. You will have to use |
Edit: The code example is more stripped down than I intended it to be. This issue occured for me on views (with borderRadius and backgroundColor) that had texts and views as its children (those were without background color or borderRadius) and when I created the code example I forgot to copy over the hierarchy from the production code to the example code while making a screenshot from the production code. Sorry about that. |
@frostney - no problem, glad it helped! 😄 |
overflow: 'hidden' does fix it for me too. Thats not the expected css behaviour. Maybe we should write it in the docs. Greetings |
I believe this now works correctly. |
I still have this issue but only with absolutely positioned views. The overflow: 'hidden' works for me as well. |
It is still an issue but overflow: 'hidden' works. Thanks. |
The issue with overflow is you can't use shadows anymore as they are considered as overflowing elements. |
as @uandco mentioned, the overflow cannot be used together with shadow properties.. What is the workaround here? |
When a
<View />
component usesbackgroundColor
andborderRadius
, the background color is still visible over the edges of the border.Screenshot:
Example code:
The text was updated successfully, but these errors were encountered: