Skip to content
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

fix(elevation): remove containment #1188

Merged
merged 5 commits into from Jan 9, 2022
Merged

fix(elevation): remove containment #1188

merged 5 commits into from Jan 9, 2022

Conversation

rachelbt
Copy link
Contributor

@rachelbt rachelbt commented Jan 4, 2022

contain: content causes nested components to be un-shown because popup position is absolute.
see codepen: https://codepen.io/rachelbt/pen/jOGKqox

added ::slotted(*) for border-radius inherit (inherit doesn't)

@rachelbt rachelbt requested a review from yinonov January 4, 2022 13:23
@github-actions
Copy link

github-actions bot commented Jan 4, 2022

🚀

Latest successful build of the PR deployed here.

🚀

@rachelbt
Copy link
Contributor Author

rachelbt commented Jan 5, 2022

I think its better that there will be a case of missing border-radius rather then hidden content

Copy link
Contributor

@yinonov yinonov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe we can remove border-radius on elevation altogether?

@rachelbt
Copy link
Contributor Author

rachelbt commented Jan 6, 2022

It does :)

Copy link
Contributor

@yinonov yinonov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can just remove the border radius from elevation as drop-shadow will take into consideration the shape of content.
So we leave shaping responsibility to

components/elevation/src/vwc-elevation.scss Outdated Show resolved Hide resolved
@sonarcloud
Copy link

sonarcloud bot commented Jan 9, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@rachelbt rachelbt merged commit 57e40b3 into master Jan 9, 2022
@yinonov yinonov deleted the fix(elevation) branch January 9, 2022 12:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants