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

CSS Variable for text-area footer font-size #10484

Open
3 of 6 tasks
tom12993 opened this issue Oct 3, 2024 · 2 comments
Open
3 of 6 tasks

CSS Variable for text-area footer font-size #10484

tom12993 opened this issue Oct 3, 2024 · 2 comments
Labels
0 - new New issues that need assignment. ArcGIS Monitor Issues logged by ArcGIS Monitor team members. calcite-components Issues specific to the @esri/calcite-components package. calcite-design-tokens Issues specific to the @esri/calcite-design-tokens package. design-tokens Issues requiring design tokens. enhancement Issues tied to a new feature or request. impact - p2 - want for an upcoming milestone User set priority impact status of p2 - want for an upcoming milestone needs triage Planning workflow - pending design/dev review.

Comments

@tom12993
Copy link

tom12993 commented Oct 3, 2024

Check existing issues

Description

I want to decouple the font-size of calcite-text-area's body and footer.
Example: 14px for text-area body, and 12px for the footer text

Acceptance Criteria

Add --calcite-text-area-footer-font-size which will affect just the footer's font-size.

Relevant Info

No response

Which Component

calcite-text-area

Example Use Case

image

Priority impact

impact - p2 - want for an upcoming milestone

Calcite package

  • @esri/calcite-components
  • @esri/calcite-components-angular
  • @esri/calcite-components-react
  • @esri/calcite-design-tokens
  • @esri/eslint-plugin-calcite-components

Esri team

ArcGIS Monitor

@tom12993 tom12993 added 0 - new New issues that need assignment. enhancement Issues tied to a new feature or request. needs triage Planning workflow - pending design/dev review. labels Oct 3, 2024
@github-actions github-actions bot added ArcGIS Monitor Issues logged by ArcGIS Monitor team members. calcite-components Issues specific to the @esri/calcite-components package. calcite-design-tokens Issues specific to the @esri/calcite-design-tokens package. impact - p2 - want for an upcoming milestone User set priority impact status of p2 - want for an upcoming milestone labels Oct 3, 2024
@alisonailea
Copy link
Contributor

Can you describe a bit more about your use case for this?

@tom12993
Copy link
Author

tom12993 commented Oct 3, 2024

@alisonailea I just want the footer font-size, including the character count, to be smaller than the text-area body.
To achieve this same effect, we're currently setting the scale of calcite-text-area to s so the footer font-size can be 12px. And then we're using shadowRoot to modify the font-size of the body to 14px.

    const textArea = document.querySelector('calcite-text-area')
    if (textArea?.shadowRoot) {
      textArea.shadowRoot.innerHTML += `<style>textarea {font-size: var(--calcite-font-size--1) !important;}</style>`
    }

@geospatialem geospatialem added the design-tokens Issues requiring design tokens. label Oct 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0 - new New issues that need assignment. ArcGIS Monitor Issues logged by ArcGIS Monitor team members. calcite-components Issues specific to the @esri/calcite-components package. calcite-design-tokens Issues specific to the @esri/calcite-design-tokens package. design-tokens Issues requiring design tokens. enhancement Issues tied to a new feature or request. impact - p2 - want for an upcoming milestone User set priority impact status of p2 - want for an upcoming milestone needs triage Planning workflow - pending design/dev review.
Projects
None yet
Development

No branches or pull requests

3 participants