Skip to content

Commit

Permalink
Feat(web): Introduce ActionLayout component #DS-1311
Browse files Browse the repository at this point in the history
  • Loading branch information
curdaj committed Jun 24, 2024
1 parent 302fb6c commit 99e3c8b
Show file tree
Hide file tree
Showing 6 changed files with 40 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# UNSTABLE ActionLayout

⚠️ This component is UNSTABLE. It may significantly change at any point in the future.
Please use it with caution.
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
@use 'sass:map';
@use 'theme' as theme;
@use '../../tools/breakpoint';

.UNSTABLE_ActionLayout {
display: flex;
flex-direction: column;
gap: theme.$root-gap;
justify-content: center;
width: 100%;

@include breakpoint.up(map.get(theme.$breakpoints, tablet)) {
flex-direction: row-reverse;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
@use '@tokens' as tokens;

$breakpoints: tokens.$breakpoints;
$root-gap: tokens.$space-600;
15 changes: 15 additions & 0 deletions packages/web/src/scss/components/UNSTABLE_ActionLayout/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{{#> web/layout/plain }}

<section class="docs-Section">
<h2 class="docs-Heading">Default</h2>
<div class="docs-Stack docs-Stack--stretch">

<div class="UNSTABLE_ActionLayout">
<a class="Button Button--primary Button--medium" href="#">Primary Button</a>
<a class="Button Button--secondary Button--medium" href="#">Secondary Button</a>
</div>

</div>
</section>

{{/web/layout/plain }}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@forward 'UNSTABLE_ActionLayout';
1 change: 1 addition & 0 deletions packages/web/src/scss/components/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
@forward 'TextField';
@forward 'Toast';
@forward 'Tooltip';
@forward 'UNSTABLE_ActionLayout';
@forward 'UNSTABLE_Divider';
@forward 'UNSTABLE_EmptyState';
@forward 'UNSTABLE_Slider';

0 comments on commit 99e3c8b

Please sign in to comment.