Skip to content

Commit

Permalink
update order of elements following the design review
Browse files Browse the repository at this point in the history
  • Loading branch information
leagrdv committed Oct 9, 2024
1 parent 124ac50 commit 959ec60
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,7 @@ export const FormFooter: Story = {
}).map(
args => html`
<div class="form-footer">
${args.tertiaryButton
? html`
<button class="btn btn-tertiary">
<post-icon aria-hidden="true" name="3024"></post-icon>Back
</button>
`
: null}
<div class="form-footer-right-actions">
<div class="form-footer-primary-actions">
<button class="btn btn-primary">
Send<post-icon aria-hidden="true" name="3020"></post-icon>
</button>
Expand All @@ -41,6 +34,13 @@ export const FormFooter: Story = {
? html` <button class="btn btn-secondary">Cancel</button> `
: null}
</div>
${args.tertiaryButton
? html`
<button class="btn btn-tertiary">
<post-icon aria-hidden="true" name="3024"></post-icon>Back
</button>
`
: null}
</div>
`,
)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,10 @@ type Story = StoryObj;
export function render(args: Args) {
return html`
<div class="form-footer">
${unsafeHTML(args.tertiaryButton)}
<div class="form-footer-right-actions">
<div class="form-footer-primary-actions">
${unsafeHTML(args.primaryButton)} ${unsafeHTML(args.secondaryButton)}
</div>
${unsafeHTML(args.tertiaryButton)}
</div>
`;
}
Expand Down
2 changes: 1 addition & 1 deletion packages/styles/src/components/form-footer.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ tokens.$default-map: components.$post-form-footer;
padding-block-start: tokens.get('form-footer', 'padding-block-start');
gap: tokens.get('form-footer', 'gap');

&-right-actions {
&-primary-actions {
gap: tokens.get('form-footer', 'gap');
}
}
4 changes: 2 additions & 2 deletions packages/styles/src/mixins/_utilities.scss
Original file line number Diff line number Diff line change
Expand Up @@ -185,10 +185,10 @@
justify-content: space-between;

@include media-breakpoint-up(md) {
flex-direction: row;
flex-direction: row-reverse;
}

&-right-actions {
&-primary-actions {
display: flex;
flex-direction: column;

Expand Down

0 comments on commit 959ec60

Please sign in to comment.