Skip to content

Commit

Permalink
fix grid issues
Browse files Browse the repository at this point in the history
  • Loading branch information
precious-onyenaucheya-ons committed Dec 5, 2024
1 parent f6ab261 commit 724349b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 17 deletions.
18 changes: 5 additions & 13 deletions src/components/description-list/_description-list.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,6 @@
}
}

&-inline-comma {
display: none;

@include mq(l) {
display: inline;
margin-right: 0.5rem;
}
}

&__item {
&:not(:first-child) {
.ons-description-list__term {
Expand Down Expand Up @@ -64,12 +55,13 @@
grid-template-columns: repeat(3, 1fr);
gap: 0.5rem 2.5rem;

.ons-grid__col {
width: auto;
.ons-description-list__value {
grid-column-start: 2;
}

.ons-description-list__value {
float: none;
.ons-description-list__item {
display: grid;
grid-template-columns: auto 1fr;
}

.ons-description-list__term {
Expand Down
4 changes: 0 additions & 4 deletions src/components/description-list/_macro.njk
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@
class="ons-description-list__value ons-grid__col ons-col-{{ params.descriptionCol }}@{{ 'xs@l' if params.variant == 'inline' else 'm' }}"
>
{{- descriptionItem.description -}}

{%- if params.variant == 'inline' and item.descriptions | length > 1 and loop.index != item.descriptions | length -%}
<span class="ons-description-list-inline-comma">, </span>
{% endif %}
</dd>
{% endif %}
{% endfor %}
Expand Down

0 comments on commit 724349b

Please sign in to comment.