Skip to content

Commit

Permalink
feat(dropdown button): dropdown button small fix
Browse files Browse the repository at this point in the history
Dropdown button small fix

fix #122
  • Loading branch information
shravan-balasubramanian committed Sep 30, 2020
1 parent 43e8bda commit 003a937
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 17 deletions.
12 changes: 6 additions & 6 deletions src/components.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export namespace Components {
/**
* Identifier of the theme based on which the button is styled.
*/
"color": "primary" | "secondary" | "danger" | "link" | "text";
"color": string;
/**
* Disables the button on the interface. If the attribute’s value is undefined, the value is set to false.
*/
Expand All @@ -26,11 +26,11 @@ export namespace Components {
/**
* Size of the button.
*/
"size": "normal" | "mini" | "small";
"size": string;
/**
* Button type based on which actions are performed when the button is clicked.
*/
"type": "button" | "reset" | "submit";
"type": string;
}
interface FwCheckbox {
/**
Expand Down Expand Up @@ -702,7 +702,7 @@ declare namespace LocalJSX {
/**
* Identifier of the theme based on which the button is styled.
*/
"color"?: "primary" | "secondary" | "danger" | "link" | "text";
"color"?: string;
/**
* Disables the button on the interface. If the attribute’s value is undefined, the value is set to false.
*/
Expand Down Expand Up @@ -730,11 +730,11 @@ declare namespace LocalJSX {
/**
* Size of the button.
*/
"size"?: "normal" | "mini" | "small";
"size"?: string;
/**
* Button type based on which actions are performed when the button is clicked.
*/
"type"?: "button" | "reset" | "submit";
"type"?: string;
}
interface FwCheckbox {
/**
Expand Down
6 changes: 3 additions & 3 deletions src/components/button/button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ export class Button {
/**
* Button type based on which actions are performed when the button is clicked.
*/
@Prop() type: 'button' | 'reset' | 'submit' = 'button';
@Prop() type = 'button'; // 'button' | 'reset' | 'submit'

/**
* Identifier of the theme based on which the button is styled.
*/
@Prop() color: 'primary' | 'secondary' | 'danger' | 'link' | 'text' = 'primary';
@Prop() color = 'primary'; // 'primary' | 'secondary' | 'danger' | 'link' | 'text'

/**
* Disables the button on the interface. If the attribute’s value is undefined, the value is set to false.
Expand All @@ -29,7 +29,7 @@ export class Button {
/**
* Size of the button.
*/
@Prop() size: 'normal' | 'mini' | 'small' = 'normal';
@Prop() size = 'normal'; // 'normal' | 'mini' | 'small'

/**
* Accepts the id of the fw-modal component to open it on click
Expand Down
16 changes: 8 additions & 8 deletions src/components/button/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,14 @@ fw-button displays a button on the user interface and enables performing specifi

## Properties

| Property | Attribute | Description | Type | Default |
| ---------------- | ------------------ | -------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------- | ----------- |
| `color` | `color` | Identifier of the theme based on which the button is styled. | `"danger" or "link" or "primary" or "secondary" or "text"` | `'primary'` |
| `disabled` | `disabled` | Disables the button on the interface. If the attribute’s value is undefined, the value is set to false. | `boolean` | `false` |
| `expand` | `expand` | Sets the button to a full-width block. If the attribute’s value is undefined, the value is set to false. | `boolean` | `false` |
| `modalTriggerId` | `modal-trigger-id` | Accepts the id of the fw-modal component to open it on click | `string` | `''` |
| `size` | `size` | Size of the button. | `"mini" or "normal" or "small"` | `'normal'` |
| `type` | `type` | Button type based on which actions are performed when the button is clicked. | `"button" or "reset" or "submit"` | `'button'` |
| Property | Attribute | Description | Type | Default |
| ---------------- | ------------------ | -------------------------------------------------------------------------------------------------------- | --------- | ----------- |
| `color` | `color` | Identifier of the theme based on which the button is styled. | `string` | `'primary'` |
| `disabled` | `disabled` | Disables the button on the interface. If the attribute’s value is undefined, the value is set to false. | `boolean` | `false` |
| `expand` | `expand` | Sets the button to a full-width block. If the attribute’s value is undefined, the value is set to false. | `boolean` | `false` |
| `modalTriggerId` | `modal-trigger-id` | Accepts the id of the fw-modal component to open it on click | `string` | `''` |
| `size` | `size` | Size of the button. | `string` | `'normal'` |
| `type` | `type` | Button type based on which actions are performed when the button is clicked. | `string` | `'button'` |


## Events
Expand Down

0 comments on commit 003a937

Please sign in to comment.