Skip to content

Commit e61e612

Browse files
authored
feat: inherit all sizing for icons set to inherit (#992)
* feat: inherit all sizing for icons set to inherit * feat: added a couple of icons too * fix: currentColor
1 parent 96c9d5b commit e61e612

File tree

5 files changed

+12
-2
lines changed

5 files changed

+12
-2
lines changed
Lines changed: 3 additions & 0 deletions
Loading
Lines changed: 3 additions & 0 deletions
Loading

projects/assets-library/src/icons/icon-library.module.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ const iconsRootPath = 'assets/icons';
2424
{ key: IconType.ArrowUp, url: `${iconsRootPath}/arrow-up.svg` },
2525
{ key: IconType.ArrowUpLeft, url: `${iconsRootPath}/arrow-up-left.svg` },
2626
{ key: IconType.ArrowUpRight, url: `${iconsRootPath}/arrow-up-right.svg` },
27+
{ key: IconType.Calls, url: `${iconsRootPath}/calls.svg` },
2728
{ key: IconType.CheckCircle, url: `${iconsRootPath}/check-circle.svg` },
2829
{ key: IconType.CheckCircleFill, url: `${iconsRootPath}/check-circle-fill.svg` },
2930
{ key: IconType.ChevronDown, url: `${iconsRootPath}/chevron-down.svg` },
@@ -69,6 +70,7 @@ const iconsRootPath = 'assets/icons';
6970
{ key: IconType.Node, url: `${iconsRootPath}/node.svg` },
7071
{ key: IconType.Note, url: `${iconsRootPath}/note.svg` },
7172
{ key: IconType.OpenInNewTab, url: `${iconsRootPath}/open-in-new-tab.svg` },
73+
{ key: IconType.Protocol, url: `${iconsRootPath}/protocol.svg` },
7274
{ key: IconType.Python, url: `${iconsRootPath}/python.svg` },
7375
{ key: IconType.Search, url: `${iconsRootPath}/search.svg` },
7476
{ key: IconType.SidebarCollapse, url: `${iconsRootPath}/sidebar-collapse.svg` },

projects/assets-library/src/icons/icon-type.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ export const enum IconType {
1414
ArrowUp = 'svg:arrow-up',
1515
ArrowUpLeft = 'svg:arrow-up-left',
1616
ArrowUpRight = 'svg:arrow-up-right',
17+
Calls = 'svg:calls',
1718
Cancel = 'cancel',
1819
CheckCircle = 'svg:check-circle',
1920
CheckCircleFill = 'svg:check-circle-fill',
@@ -85,6 +86,7 @@ export const enum IconType {
8586
OpenInNewTab = 'svg:open-in-new-tab',
8687
PageView = 'pageview',
8788
Previous = 'navigate_before',
89+
Protocol = 'svg:protocol',
8890
Python = 'svg:python',
8991
Refresh = 'refresh',
9092
Remove = 'remove',

projects/components/src/icon/icon.component.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@
4848
}
4949

5050
&.inherit {
51-
font-size: 32px;
52-
height: 32px;
51+
font-size: inherit;
52+
height: inherit;
5353
width: inherit;
5454
}
5555
}

0 commit comments

Comments
 (0)