-
Notifications
You must be signed in to change notification settings - Fork 78
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] Ensure all components inherit font-family #7175
Labels
1 - assigned
Issues that are assigned to a sprint and a team member.
ArcGIS Maps SDK for JavaScript
Issues logged by ArcGIS SDK for JavaScript team members.
Calcite (design)
Issues logged by Calcite designers.
design
Issues that need design consultation prior to development.
design-tokens
Issues requiring design tokens.
enhancement
Issues tied to a new feature or request.
estimate - 3
A day or two of work, likely requires updates to tests.
p - medium
Issue is non core or affecting less that 60% of people using the library
ready for dev
Issues ready for development implementation.
Milestone
Comments
add |
This was referenced Dec 9, 2023
alisonailea
added a commit
that referenced
this issue
Dec 18, 2023
**Related Issue:** #7175 ## Summary Add font family fallbacks to tokens and update the transformer to know how to interpret those for Styles
Installed and assigned for verification. |
🍠 Verified locally on |
6 tasks
alisonailea
added a commit
that referenced
this issue
Apr 26, 2024
**Related Issue:** #7175 #9205 ## Summary All components now inherit from the font-family set at root and that font-family is inherited from tokens. This also updates tailwind to use the font-family token --------- Co-authored-by: JC Franco <[email protected]>
Some components are still not inheriting |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
1 - assigned
Issues that are assigned to a sprint and a team member.
ArcGIS Maps SDK for JavaScript
Issues logged by ArcGIS SDK for JavaScript team members.
Calcite (design)
Issues logged by Calcite designers.
design
Issues that need design consultation prior to development.
design-tokens
Issues requiring design tokens.
enhancement
Issues tied to a new feature or request.
estimate - 3
A day or two of work, likely requires updates to tests.
p - medium
Issue is non core or affecting less that 60% of people using the library
ready for dev
Issues ready for development implementation.
Description
Currently, the majority of our components can have their font set by simply setting a
font-family
on an element. However, some require an additional rule to be set with--calcite-sans-family
, for example, Action and List:Suggest having all components inherit from a
font-family
set on a parent component.Acceptance Criteria
As a user, I can easily override all fonts in my Calcite application with a single declaration.
Relevant Info
Codepen: https://codepen.io/mac_and_cheese/pen/NWExrER?editors=1000
The story for
--calcite-sans-family
is also unclear to me, do we need this variable, or could it be a more generic `--calcite-ui-font-family"?For instances where text defined via prop is desired to have different fonts within the same component, that's really a story for css parts - which we do want to tackle but as part of a larger effort in the ... future.
Which Component
It's defined in a handful of components - Action, List, etc.
Example Use Case
As a user, I want to be able to easily override the font for my entire application with one declaration.
Priority impact
p3 - want for upcoming milestone
Esri team
Calcite (design)
The text was updated successfully, but these errors were encountered: