-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(input, input-number, input-text): add prefix and suffix width cs…
…s tokens (#10206) **Related Issue:** [#8154](#8154) ## Summary Add `--calcite-input-prefix-size` and `--calcite-input-suffix-size` css tokens to allow users to set custom `prefix` and `suffix` widths.
- Loading branch information
1 parent
f33fd5d
commit 7a6ee82
Showing
10 changed files
with
131 additions
and
0 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
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
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
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
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
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
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
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { html } from "../../support/formatting"; | ||
|
||
export const inputNumber = html`<calcite-input-number | ||
placeholder="Placeholder text" | ||
prefix-text="prefix" | ||
suffix-text="suffix" | ||
></calcite-input-number>`; |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { html } from "../../support/formatting"; | ||
|
||
export const inputText = html`<calcite-input-text | ||
placeholder="Placeholder text" | ||
prefix-text="prefix" | ||
suffix-text="suffix" | ||
></calcite-input-text>`; |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { html } from "../../support/formatting"; | ||
|
||
export const inputTokens = { | ||
calciteInputPrefixSize: "", | ||
calciteInputSuffixSize: "", | ||
}; | ||
|
||
export const input = html`<calcite-input | ||
placeholder="Placeholder text" | ||
prefix-text="prefix" | ||
suffix-text="suffix" | ||
></calcite-input>`; |