Skip to content

Commit d57f33e

Browse files
authored
Merge pull request #23 from VolkerLieber/master
Implement IconButton size
2 parents 7fb7bda + 4d9a762 commit d57f33e

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

SiemensIXBlazor/Components/Button/IconButton.razor

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,6 @@ color="@Color"
1515
icon="@Icon"
1616
oval="@Oval"
1717
loading="@Loading"
18-
data-tooltip="@DataTooltip">
18+
data-tooltip="@DataTooltip"
19+
size="@Size">
1920
</ix-icon-button>

SiemensIXBlazor/Components/Button/IconButton.razor.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ public partial class IconButton
2020
[Parameter]
2121
public bool? Oval { get; set; }
2222
[Parameter]
23+
public IconButtonSize Size { get; set; } = IconButtonSize._24;
24+
[Parameter]
2325
public bool Selected { get; set; } = false;
2426
[Parameter]
2527
public string DataTooltip { get; set; } = string.Empty;
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
namespace SiemensIXBlazor.Enums.Button
2+
{
3+
public enum IconButtonSize
4+
{
5+
_12 = 12,
6+
_16 = 16,
7+
_24 = 24
8+
}
9+
}

0 commit comments

Comments
 (0)