Drawercontent
<"> Why does css border-radius cause elements to disappear in this minimal Angular Material Sidenav component? (demo available)-PHP Chinese Network Q&A
Why does css border-radius cause elements to disappear in this minimal Angular Material Sidenav component? (demo available)
P粉121447292
P粉121447292 2023-09-15 20:15:02
0
1
952

This is about Angular Material Sidenav component. In the code below, when I increase the border radius so that it overlaps the enclosing element, the element disappears.

  Drawer content 
Main content

(Content is visible when there is no border radius)

(The content disappears after adding the border radius)

Stackblitz: https://stackblitz.com/edit/7swnhp?file=src/example/sidenav-drawer-overview-example.html

I can't see where the element goes, I can't see any hidden styles being applied, in the DOM I can see it's there but it's not visible.

P粉121447292
P粉121447292

reply all (1)
P粉590428357

When I add border-raduis it works as expected and the content is visible.

    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template
    About us Disclaimer Sitemap
    php.cn:Public welfare online PHP training,Help PHP learners grow quickly!