-
Notifications
You must be signed in to change notification settings - Fork 125
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: (platform) updating button with styles 0.12.0 (#3514)
* update platform button with 3400 changes * removed blank space updating kevins review commmnts imported gyphposition from core
- Loading branch information
Showing
8 changed files
with
48 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
...ocs/platform-button/platform-button-examples/platform-button-icons-example.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...ocs/platform-button/platform-button-examples/platform-button-sizes-example.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
<fdp-button>Normal Button</fdp-button> | ||
<fdp-button contentDensity="compact">Compact Button</fdp-button> | ||
<fdp-button label="Normal Button"></fdp-button> | ||
<fdp-button contentDensity="compact" label="Compact Button"></fdp-button> |
6 changes: 3 additions & 3 deletions
6
...ocs/platform-button/platform-button-examples/platform-button-state-example.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
<fdp-button ariaSelected="true">Selected State</fdp-button> | ||
<fdp-button ariaDisabled="true">Disabled State</fdp-button> | ||
<fdp-button disabled="true">Disabled State</fdp-button> | ||
<fdp-button ariaSelected="true" label="Selected State"></fdp-button> | ||
<fdp-button ariaDisabled="true" label="Disabled State"></fdp-button> | ||
<fdp-button disabled="true" label="Disabled State"></fdp-button> |
2 changes: 1 addition & 1 deletion
2
.../platform-button/platform-button-examples/platform-button-truncate-example.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
<fdp-button width="86px" title="Looooooooooong Text Button">Looooooooooong Text Button</fdp-button> | ||
<fdp-button width="86px" title="Looooooooooong Text Button" label="Looooooooooong Text Button"></fdp-button> |
14 changes: 7 additions & 7 deletions
14
...ocs/platform-button/platform-button-examples/platform-button-types-example.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
<fdp-button>Standard Button</fdp-button> | ||
<fdp-button buttonType="emphasized">Emphasized Button</fdp-button> | ||
<fdp-button buttonType="ghost">Ghost Button</fdp-button> | ||
<fdp-button buttonType="positive">Positive Button</fdp-button> | ||
<fdp-button buttonType="attention">Attention Button</fdp-button> | ||
<fdp-button buttonType="negative">Negative Button</fdp-button> | ||
<fdp-button buttonType="transparent">Transparent Button</fdp-button> | ||
<fdp-button label="Standard Button"></fdp-button> | ||
<fdp-button buttonType="emphasized" label="Standard Button"></fdp-button> | ||
<fdp-button buttonType="ghost" label="Ghost Button"></fdp-button> | ||
<fdp-button buttonType="positive" label="Positive Button"></fdp-button> | ||
<fdp-button buttonType="attention" label="Attention Button"></fdp-button> | ||
<fdp-button buttonType="negative" label="Negative Button"></fdp-button> | ||
<fdp-button buttonType="transparent" label="Transparent Button"></fdp-button> |
8 changes: 4 additions & 4 deletions
8
libs/platform/src/lib/components/button/button.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<button #fdButton fd-button [attr.id]="id" [attr.title]="title" [attr.name]="name" [attr.aria-label]="title" | ||
[type]="type" [attr.value]="value" [attr.aria-selected]="ariaSelected" [attr.aria-disabled]="ariaDisabled" | ||
[compact]="contentDensity === 'compact'" [glyph]="glyph" [disabled]="disabled" (click)="onBtnClick($event)" | ||
[fdType]="buttonType" [ngStyle]="{ width: width }"> | ||
<ng-content></ng-content> | ||
[glyphPosition]="glyphPosition" [label]="label" [type]="type" [attr.value]="value" | ||
[attr.aria-selected]="ariaSelected" [attr.aria-disabled]="ariaDisabled" [compact]="contentDensity === 'compact'" | ||
[glyph]="glyph" [disabled]="disabled" (click)="onBtnClick($event)" [fdType]="buttonType" | ||
[ngStyle]="{ width: width }"> | ||
</button> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters