Skip to content

Commit

Permalink
IBX-6998: First table row has white background (#982)
Browse files Browse the repository at this point in the history
  • Loading branch information
GrabowskiM authored Nov 9, 2023
1 parent 593ad41 commit 1349b93
Showing 1 changed file with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,24 @@

{% block table %}
{% set table_content %}
{% set empty_row %}
{% block tbody_empty %}
{% include '@ibexadesign/ui/component/table/empty_table_body_row.html.twig' with {
colspan: head_cols|length,
empty_image: empty_image|default(asset('/bundles/ibexaadminui/img/ibexa-empty-table.svg'))
} %}
{% endblock %}
{% endset %}

<table
class="ibexa-table table
{{ is_last_column_sticky ? 'ibexa-table--last-column-sticky' }}
{{ class|default('') -}}"
{{ html.attributes(attr|default({})) }}
>
<template class="ibexa-table__template--empty-row">
{{ empty_row }}
</template>
<thead {{ body_rows is defined and body_rows is not empty or head_cols is defined and show_head_cols_if_empty ? '' : 'hidden' }}>
{% block thead %}
{% if head_cols is defined %}
Expand All @@ -50,18 +62,6 @@
{{ html.attributes(table_body_attr|default({})) }}
>
{% block tbody %}
{% set empty_row %}
{% block tbody_empty %}
{% include '@ibexadesign/ui/component/table/empty_table_body_row.html.twig' with {
colspan: head_cols|length,
empty_image: empty_image|default(asset('/bundles/ibexaadminui/img/ibexa-empty-table.svg'))
} %}
{% endblock %}
{% endset %}

<template class="ibexa-table__template--empty-row">
{{ empty_row }}
</template>

{% if body_rows is defined %}
{% if body_rows is empty %}
Expand Down

0 comments on commit 1349b93

Please sign in to comment.