Skip to content
This repository was archived by the owner on Nov 30, 2022. It is now read-only.

Commit 203541b

Browse files
committed
feat(app-bar): new svg for the cutout
1 parent 75467cc commit 203541b

File tree

2 files changed

+2
-17
lines changed

2 files changed

+2
-17
lines changed

projects/core/src/lib/app-bar/app-bar.component.html

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,7 @@
66
</div>
77
</div>
88
<ng-content select="fiv-fab"></ng-content>
9-
<svg viewBox="0 0 100 50" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
10-
<defs>
11-
<path d="M0,0 C0,28 22,50 50,50 C78,50 100,28 100,0 L101,50 L0,50" id="path-1">
12-
</path>
13-
</defs>
14-
<g id="Page-1" stroke="none" stroke-width="1px" fill="none" fill-rule="evenodd">
15-
<g id="cutout">
16-
<mask id="mask-2" fill="white">
17-
<use xlink:href="#path-1"></use>
18-
</mask>
19-
<g id="Path"></g>
20-
<polygon id="Path" fill-rule="nonzero" mask="url(#mask-2)" points="0 0 100 0 100 50 0 50">
21-
</polygon>
22-
</g>
23-
</g>
24-
</svg>
9+
<svg viewBox="0 0 100 50" width="100" height="50" xmlns="http://www.w3.org/2000/svg"><path d="M100 0v50H0V0c.543 27.153 22.72 49 50 49S99.457 27.153 99.99 0h.01z" fill="red" fill-rule="evenodd"/></svg>
2510
<div class="rect-filler"></div>
2611
<div class="appbar-rect right">
2712
<div class="tabs">

projects/core/src/lib/app-bar/app-bar.component.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ svg {
2424
env(safe-area-inset-bottom) + var(--fiv-appbar-height) - var(--fiv-radius) /
2525
2 - var(--fiv-border-radius)
2626
);
27-
polygon {
27+
path {
2828
fill: var(--fiv-color-appbar);
2929
}
3030
}

0 commit comments

Comments
 (0)