-
Notifications
You must be signed in to change notification settings - Fork 137
Platform: Button Component V1.0 Technical Design
The button lets users trigger an action by clicking or tapping it, or by pressing certain keys, such as Enter or the space bar.
<fdp-button
[options]="options"
[size]="size"
[glyph]="glyph"
[disabled]="disabled"
(click)="onBtnClick($event)"
[fdType]="type">Button Content</fdp-button>The "size" property allows the user to set the sizes of the button such as small. Which will act as compact button. small=> button height will be 28px. default or no value set==> height will be 36px.
The icon to include in the button
For making button disabled. Default value:false ==>Button will be enabled true==> button will be disabled.
The type of the button. *Types include 'standard', 'positive', 'medium', and 'negative'. *Empty for default (button)
ButtonOptions include 'light' | 'emphasized' | ''
- The "buttonClicked" event binding emits an event whenever user clicks on button.
N/A
N/A
The following components and/or directives from @fundamental-ngx/core will be used:
- Does button label should be truncated and appended with an ellipsis? Or it should be responsive based on the content entered and user should be taking care from when on they can have truncation.
example:
<fdp-button width='30px'.........
then css will be: width: 30px; (user input value) overflow: hidden; white-space: nowrap; display: block; text-overflow: ellipsis;
*According to spec tooltips should have a black background color. Whereas fundamentals do not have it. Should behave the black background in @ariba-pi/platform as specs are more specific to Ariba? or I can have the same in @fundamental-ngx/platform which will be used by non Ariba products as well?
Frank: We are not really making things specifics to Ariba more Fiori3, we take things from ariba to enhance existing requirements, but in terms of colors, it should stay Fiori3. We will be using theming that will be defined once using css variables and with custom colors we woudl mess it up.