-
Notifications
You must be signed in to change notification settings - Fork 77
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
[calcite-loader] Customization of text margin and style #6695
Comments
@jasdelreyes Thanks for filing! There may be some customization/workaround while we consider and prioritize the effort using some of For instance: https://codepen.io/geospatialem/pen/oNPOgKO, where you can change the calcite-loader {
font-weight: var(--calcite-font-weight-bold);
} Perhaps even if you did want to try adding in separate text to achieve a specific <calcite-loader label="Adjusting polygons..."></calcite-loader>
<div id="loader-text">Adjusting polygons...</div> calcite-loader {
--calcite-loader-padding: 0;
}
#loader-text {
font-size: var(--calcite-font-size-3);
font-weight: var(--calcite-font-weight-bold);
text-align: center;
margin: 2rem 0rem;
} |
Related: #4470 |
requires creating a |
**Related Issue:** #7180 #6695 ## Summary Add design tokens for loader component along with e2e tests. New tokens added: `--calcite-loader-progress-color-inline`: Specifies the width and height of the component when set to inline. `--calcite-loader-text-spacing`: Specifies the component's text margin. `--calcite-loader-text-weight`: Specifies the component's font weight. `--calcite-loader-color`: Specifies the component's text color. `--calcite-loader-progress-color`: Specifies the component's progress ring color. `--calcite-loader-track-color`: Specifies the component's track color. Renamed tokens: `--calcite-loader-padding` --> `--calcite-loader-spacing`⚠️ Deprecated tokens: `--calcite-loader-size-inline`
Installed and assigned for verification. |
**Related Issue:** #7180 #6695 ## Summary Add design tokens for loader component along with e2e tests. New tokens added: `--calcite-loader-progress-color-inline`: Specifies the width and height of the component when set to inline. `--calcite-loader-text-spacing`: Specifies the component's text margin. `--calcite-loader-text-weight`: Specifies the component's font weight. `--calcite-loader-color`: Specifies the component's text color. `--calcite-loader-progress-color`: Specifies the component's progress ring color. `--calcite-loader-track-color`: Specifies the component's track color. Renamed tokens: `--calcite-loader-padding` --> `--calcite-loader-spacing`⚠️ Deprecated tokens: `--calcite-loader-size-inline`
Description
Ability to customize the spacing of the text from the loader and loading text and the style of text (i.e. make bold). Currently, if there is long text used as the loading text, the text appears too close to the loader.
Acceptance Criteria
Prop to style the text
Prop to change the margin between text and loader (currently, the default margin of the loader from any other HTML elements is quite large, so adding a text div separately to customize text is unfeasible).
Relevant Info
No response
Which Component
calcite-loader
Example Use Case
No response
Priority impact
p2 - want for current milestone
Esri team
ArcGIS Online
The text was updated successfully, but these errors were encountered: