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/widget-test-docs/4CmHmkDt3sT7bZ235vvBMZry1nHm
✅ Preview: https://widget-test-docs-git-fork-agubler-stacks-dojo1.vercel.app
🔍 Inspect: https://vercel.com/dojo/dojo.widgets/9zzscRb3gjX8RqEjKeP1GxWp3Ywk
✅ Preview: https://dojowidgets-git-fork-agubler-stacks-dojo1.vercel.app
Merging #1708 (b25498e) into master (7c8e49e) will increase coverage by
0.10%
. The diff coverage is98.48%
.
@@ Coverage Diff @@
## master #1708 +/- ##
==========================================
+ Coverage 90.46% 90.57% +0.10%
==========================================
Files 94 96 +2
Lines 5152 5218 +66
Branches 1406 1418 +12
==========================================
+ Hits 4661 4726 +65
Misses 241 241
- Partials 250 251 +1
Impacted Files | Coverage Δ | |
---|---|---|
src/stack/Spacer.tsx | 90.90% <90.90%> (ø) |
|
src/stack/index.tsx | 100.00% <100.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 7c8e49e...b25498e. Read the comment docs.
Type: feature
The following has been addressed in the PR:
.dojorc
theme.variant()
is added to the root domnodetheme.compose
like thisDescription:
Introduces a set of layout components that can be used to create vertical and horizontal stacks of elements or widgets. A special
Spacer
component can be used to customise spacing between nodes in the stack. As well as theSpacer
widget a number of properties can be configured to tweak the layout of the nodes in the stack and the container node itself.align
: Used to align the nodes in the stack for the opposite direction of the stackpadding
: Sets padding on the main container, small, medium, largespacing
: Space between the stack nodes, small, medium, largestretch
: Stretches the container across width and heightThe CSS theme for spacing and padding can be controlled by setting the relevant themes' CSS variables.
Two specific widgets have been created for each of the supported directions,
HStack
andVStack
but also the generalStack
can be used with adirection
property passed (eithervertical
orhoriztonal
)Resolves #1585