Skip to content

Commit

Permalink
Feat(web-twig): 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 e0da22e commit 302fb6c
Show file tree
Hide file tree
Showing 9 changed files with 41 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,9 @@
{% extends 'layout/plain.html.twig' %}

{% block content %}

<DocsSection title="Default" stackAlignment="stretch">
{% include '@components/UNSTABLE_ActionLayout/stories/ActionLayoutDefault.twig' %}
</DocsSection>

{% endblock %}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{# Class names #}
{%- set _rootClassName = _spiritClassPrefix ~ 'UNSTABLE_ActionLayout' -%}

<div class="{{ _rootClassName }}">
{% block content %}{% endblock %}
</div>
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<!-- Render with all props -->
<UNSTABLE_ActionLayout>
<ButtonLink href="#" color="primary">Primary Button</ButtonLink>
<ButtonLink href="#" color="secondary">Secondary Button</ButtonLink>
</UNSTABLE_ActionLayout>
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<!DOCTYPE html>
<!-- Render with all props --><html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>
</title>
</head>
<body>
<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>
</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<UNSTABLE_ActionLayout>
<ButtonLink href="#" color="primary">Primary Button</ButtonLink>
<ButtonLink href="#" color="secondary">Secondary Button</ButtonLink>
</UNSTABLE_ActionLayout>
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{% extends '@spirit/UNSTABLE_ActionLayout/UNSTABLE_ActionLayout.twig' %}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 302fb6c

Please sign in to comment.