-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
IBX-2004: Add tabs error state; fix tabs in Page Builder (#260)
- Loading branch information
Showing
9 changed files
with
43 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 8 additions & 1 deletion
9
src/bundle/Resources/views/themes/admin/ui/component/tab/tabs_link.html.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,10 @@ | ||
<a id="ibexa-tab-label-{{ id }}" href="#ibexa-tab-{{ id }}" data-bs-toggle="tab" class="nav-link ibexa-tabs__link {% if active %}active{% endif %} {{ class|default('') }}"> | ||
<a | ||
id="ibexa-tab-label-{{ id }}" | ||
href="#ibexa-tab-{{ id }}" | ||
data-bs-toggle="tab" | ||
class="nav-link ibexa-tabs__link | ||
{% if active %}active{% endif %} | ||
{{ class|default('') }}" | ||
> | ||
{{ label }} | ||
</a> |
10 changes: 7 additions & 3 deletions
10
src/bundle/Resources/views/themes/admin/ui/component/tab/tabs_tab.html.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,15 @@ | ||
{% set active = active|default(false) %} | ||
|
||
<li class="nav-item ibexa-tabs__tab ibexa-adaptive-items__item {% if active %}ibexa-tabs__tab--active{% endif %}"> | ||
<li | ||
class=" | ||
nav-item ibexa-tabs__tab ibexa-adaptive-items__item | ||
{% if active|default(false) %}ibexa-tabs__tab--active{% endif %} | ||
{% if has_error|default(false) %}ibexa-tabs__tab--error{% endif %}" | ||
> | ||
{% block tab_link %} | ||
{% include '@ibexadesign/ui/component/tab/tabs_link.html.twig' with { | ||
id: tab.id, | ||
label: tab.label, | ||
} %} | ||
{% include '@ibexadesign/ui/component/tab/tabs_tab_warning_icon.html.twig' %} | ||
{% endblock %} | ||
{% include '@ibexadesign/ui/component/tab/tab_corner.html.twig' %} | ||
</li> |
3 changes: 3 additions & 0 deletions
3
src/bundle/Resources/views/themes/admin/ui/component/tab/tabs_tab_warning_icon.html.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<span class="ibexa-tabs__tab-warning-icon"> | ||
! | ||
</span> |
5 changes: 0 additions & 5 deletions
5
src/bundle/Resources/views/themes/admin/ui/component/warning_icon.html.twig
This file was deleted.
Oops, something went wrong.