Closed agubler closed 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.
π Inspect: https://vercel.com/dojo/dojo.widgets/2oM2tSx5WXDhsNVt9F8TYmoMcRLH
β
Preview: https://dojowidgets-git-fork-agubler-text-widget-dojo1.vercel.app
π Inspect: https://vercel.com/dojo/widget-test-docs/BUqqRruM4LESMc7rJKYnsQ4Krhsa
β
Preview: https://widget-test-docs-git-fork-agubler-text-widget-dojo1.vercel.app
Merging #1755 (1bc3326) into master (c684b35) will increase coverage by
0.03%
. The diff coverage is94.87%
.
@@ 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.
Type: feature
The following has been addressed in the PR:
.dojorc
theme.variant()
is added to the root domnodeDescription:
Text
widget used to provide a consistent approach to typography for a theme. TheText
widget renders ap
node by default that can be changed using theas
property, for example:The font size is controlled by the
size
property (default tom
) which in turn is defined by CSS vars in the theme variants.For longer text
truncated
can be used to add an ellipsis and finallyinverse
to change the text color to work on the inverse theme background.Resolves #1647