Skip to content

Commit

Permalink
Fix(web-twig): Do not render class in the style attribute of the `G…
Browse files Browse the repository at this point in the history
…ridItem`
  • Loading branch information
dlouhak authored and crishpeen committed Nov 30, 2023
1 parent 4307f68 commit 38bcd4e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
{%- endfor -%}

{# Attributes #}
{%- set _styleAttr = _style or (_styleProps.style is not same as(null)) ? 'style="' ~ _style ~ _styleProps | join() ~ '"' -%}
{%- set _styleAttr = _style or (_styleProps.style is not same as(null)) ? 'style="' ~ _style ~ _styleProps.style | join() ~ '"' -%}

<{{ _elementType }}
{{ mainProps(props) }}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<Grid>
<GridItem columnStart="1" columnEnd="10">
<GridItem columnStart="1" columnEnd="10" UNSAFE_className="d-tablet-none">
1–10
</GridItem>
<GridItem columnStart="1" columnEnd="span 2">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
</head>
<body>
<div class="Grid">
<div class="GridItem" style="--grid-item-column-start: 1;--grid-item-column-end: 10;">
<div class="GridItem d-tablet-none" style="--grid-item-column-start: 1;--grid-item-column-end: 10;">
1&acirc;&#128;&#147;10
</div>

Expand Down

0 comments on commit 38bcd4e

Please sign in to comment.