Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 fix(quote): mise à jour des exemples [DS-2902] #721

Merged
merged 1 commit into from
Nov 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/component/quote/example/index.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const sample = getSample(include);

<%- sample('Citation par défaut (texte taille xl)', './sample/quote-default', {}, true); %>

<%- sample('Citation taille lg', './sample/quote-default', {quote:{size:'lg'}}, true); %>
<%- sample('Citation taille lg', './sample/quote-default', {quote:{size:'lg', sources: ['<a target="_blank" href="' + contentPlaceholder('Lien vers la sources ou des infos complémentaires') + '">Un seul détail</a>']}}, true); %>

<%- sample('Citation avec image', './sample/quote-with-image', {}, true); %>

Expand Down
5 changes: 1 addition & 4 deletions src/component/quote/style/_module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,7 @@

figcaption {
@include disable-list-style;

li {
@include text-style(xs);
}
@include text-style(xs);

#{ns(quote)}__source {
@include display-flex(row,null,flex-start,wrap);
Expand Down
6 changes: 5 additions & 1 deletion src/component/quote/template/ejs/quote.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,16 @@ if (size) sizeClasses = [prefix+'-text--'+size];
<p class="<%= prefix %>-quote__author"><%= author %></p>
<% } %>

<% if (sources.length > 0) { %>
<% if (sources && sources.length > 1) { %>
<ul class="<%= prefix %>-quote__source">
<% for (source in sources) { %>
<li><%- sources[source] %></li>
<% } %>
</ul>
<% } else { %>
<div class="<%= prefix %>-quote__source">
<%- sources[0] %>
</div>
<% } %>

<% if (image) { %>
Expand Down