dojo / widgets

:rocket: Dojo - UI widgets.
https://widgets.dojo.io
Other
88 stars 66 forks source link

Widget: Text Widget #1755

Closed agubler closed 3 years ago

agubler commented 3 years ago

Type: feature

The following has been addressed in the PR:

Description:

Text widget used to provide a consistent approach to typography for a theme. The Text widget renders a p node by default that can be changed using the as property, for example:

<Text as="h1">Heading Text</Text>

The font size is controlled by the size property (default to m) which in turn is defined by CSS vars in the theme variants.

For longer text truncated can be used to add an ellipsis and finally inverse to change the text color to work on the inverse theme background.

Resolves #1647

vercel[bot] commented 3 years ago

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployments, click below or on the icon next to each commit.

dojo.widgets – ./

πŸ” Inspect: https://vercel.com/dojo/dojo.widgets/2oM2tSx5WXDhsNVt9F8TYmoMcRLH
βœ… Preview: https://dojowidgets-git-fork-agubler-text-widget-dojo1.vercel.app

widget-test-docs – ./

πŸ” Inspect: https://vercel.com/dojo/widget-test-docs/BUqqRruM4LESMc7rJKYnsQ4Krhsa
βœ… Preview: https://widget-test-docs-git-fork-agubler-text-widget-dojo1.vercel.app

codecov[bot] commented 3 years ago

Codecov Report

Merging #1755 (1bc3326) into master (c684b35) will increase coverage by 0.03%. The diff coverage is 94.87%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1755      +/-   ##
==========================================
+ Coverage   90.54%   90.57%   +0.03%     
==========================================
  Files          94       95       +1     
  Lines        5193     5232      +39     
  Branches     1418     1429      +11     
==========================================
+ Hits         4702     4739      +37     
  Misses        241      241              
- Partials      250      252       +2     
Impacted Files Coverage Ξ”
src/text/index.tsx 94.87% <94.87%> (ΓΈ)
src/card/index.tsx 100.00% <0.00%> (ΓΈ)

Continue to review full report at Codecov.

Legend - Click here to learn more Ξ” = absolute <relative> (impact), ΓΈ = not affected, ? = missing data Powered by Codecov. Last update c684b35...1bc3326. Read the comment docs.