Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(input): Add component tokens #10820

Merged
merged 16 commits into from
Nov 26, 2024
Merged

Conversation

macandcheese
Copy link
Contributor

Related Issue: #7180

This will also serve as a pattern for related component like Input Text, Input Number, etc.

Summary

--calcite-input-background-color: Specifies the background color of the component.
--calcite-input-border-color: Specifies the border color of the component.
--calcite-input-corner-radius: Specifies the corner radius of the component.
--calcite-input-shadow: Specifies the shadow of the component.

--calcite-input-icon-color: Specifies the icon color of the component.
--calcite-input-text-color: Specifies the text color of the component.
--calcite-input-placeholder-text-color: Specifies the color of placeholder text in the component.

--calcite-input-actions-background-color: Specifies the background color of Input's clearable and number-button-type elements.
--calcite-input-actions-background-color-hover: Specifies the background color of Input's clearable and number-button-type elements when hovered.
--calcite-input-actions-background-color-press: Specifies the background color of Input's clearable and number-button-type elements when pressed.
--calcite-input-actions-icon-color: Specifies the icon color of Input's clearable and number-button-type elements.
--calcite-input-actions-icon-color-hover: Specifies the icon color of Input's clearable and number-button-type elements when hovered.
--calcite-input-actions-icon-color-press: Specifies the icon color of Input's clearable and number-button-type elements when pressed.

--calcite-input-loading-background-color: Specifies the background color of the loading element, when present.
--calcite-input-loading-fill-color: Specifies the fill color of the loading element, when present.

--calcite-input-prefix-background-color: Specifies the background color of the component's prefix, when present.
--calcite-input-prefix-text-color: Specifies the text color of the prefix of the component's prefix, when present.

--calcite-input-suffix-background-color: Specifies the background color of the component's suffix, when present.
--calcite-input-suffix-text-color: Specifies the text color of the component's suffix, when present.

--calcite-input-prefix-size: Specifies the component's prefix width, when present. [existing]
--calcite-input-suffix-size: Specifies the component's suffix width, when present. [existing]

@github-actions github-actions bot added the enhancement Issues tied to a new feature or request. label Nov 20, 2024
@macandcheese macandcheese added pr ready for visual snapshots Adding this label will run visual snapshot testing. design-tokens Issues requiring design tokens. labels Nov 20, 2024
Copy link
Contributor

@alisonailea alisonailea left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Just a few minor cleanup things

@macandcheese macandcheese added pr ready for visual snapshots Adding this label will run visual snapshot testing. and removed pr ready for visual snapshots Adding this label will run visual snapshot testing. labels Nov 20, 2024
@macandcheese macandcheese added pr ready for visual snapshots Adding this label will run visual snapshot testing. and removed pr ready for visual snapshots Adding this label will run visual snapshot testing. labels Nov 25, 2024
@macandcheese
Copy link
Contributor Author

@alisonailea @jcfranco - Could you give this a look again? the "text area grab handle" changes were pulled in from dev - so this pr diff should just show the applicable token changes now.

Copy link
Contributor

@alisonailea alisonailea left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@macandcheese macandcheese added pr ready for visual snapshots Adding this label will run visual snapshot testing. and removed pr ready for visual snapshots Adding this label will run visual snapshot testing. labels Nov 26, 2024
@macandcheese macandcheese merged commit 4b5ce2c into dev Nov 26, 2024
13 checks passed
@macandcheese macandcheese deleted the macandcheese/input-tokens-lumina branch November 26, 2024 18:20
benelan pushed a commit that referenced this pull request Feb 8, 2025
**Related Issue:** #7180 

This will also serve as a pattern for related component like Input Text,
Input Number, etc.

## Summary

`--calcite-input-background-color`: Specifies the background color of
the component.
`--calcite-input-border-color`: Specifies the border color of the
component.
`--calcite-input-corner-radius`: Specifies the corner radius of the
component.
`--calcite-input-shadow`: Specifies the shadow of the component.

`--calcite-input-icon-color`: Specifies the icon color of the component.
`--calcite-input-text-color`: Specifies the text color of the component.
`--calcite-input-placeholder-text-color`: Specifies the color of
placeholder text in the component.

`--calcite-input-actions-background-color`: Specifies the background
color of Input's `clearable` and `number-button-type` elements.
`--calcite-input-actions-background-color-hover`: Specifies the
background color of Input's `clearable` and `number-button-type`
elements when hovered.
`--calcite-input-actions-background-color-press`: Specifies the
background color of Input's `clearable` and `number-button-type`
elements when pressed.
`--calcite-input-actions-icon-color`: Specifies the icon color of
Input's `clearable` and `number-button-type` elements.
`--calcite-input-actions-icon-color-hover`: Specifies the icon color of
Input's `clearable` and `number-button-type` elements when hovered.
`--calcite-input-actions-icon-color-press`: Specifies the icon color of
Input's `clearable` and `number-button-type` elements when pressed.
 
`--calcite-input-loading-background-color`: Specifies the background
color of the `loading` element, when present.
`--calcite-input-loading-fill-color`: Specifies the fill color of the
`loading` element, when present.
 
`--calcite-input-prefix-background-color`: Specifies the background
color of the component's prefix, when present.
`--calcite-input-prefix-text-color`: Specifies the text color of the
prefix of the component's prefix, when present.

`--calcite-input-suffix-background-color`: Specifies the background
color of the component's suffix, when present.
`--calcite-input-suffix-text-color`: Specifies the text color of the
component's suffix, when present.

`--calcite-input-prefix-size`: Specifies the component's prefix width,
when present. _[existing]_
`--calcite-input-suffix-size`: Specifies the component's suffix width,
when present. _[existing]_
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
design-tokens Issues requiring design tokens. enhancement Issues tied to a new feature or request. pr ready for visual snapshots Adding this label will run visual snapshot testing.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants