-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Bugfix] Correction des pictogrammes dans les tuiles en mode sombre (#…
…231) * Fix a bug that prevented tiles to correctly display in dark mode if stored on a S3 * Allow the pictograms to work in dark mode
- Loading branch information
Showing
3 changed files
with
22 additions
and
3 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
15 changes: 15 additions & 0 deletions
15
content_manager/templates/content_manager/blocks/image_svg_or_raster.html
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,15 @@ | ||
{% load wagtailimages_tags %} | ||
|
||
{% image value.image original as artwork %} | ||
|
||
{% if artwork.file.name|slice:"-4:" == ".svg" %} | ||
<div class="fr-responsive-img"> | ||
<svg aria-hidden="true" class="fr-artwork" viewBox="0 0 80 80"> | ||
<use class="fr-artwork-decorative" href="{{ artwork.full_url }}#artwork-decorative"></use> | ||
<use class="fr-artwork-minor" href="{{ artwork.full_url }}#artwork-minor"></use> | ||
<use class="fr-artwork-major" href="{{ artwork.full_url }}#artwork-major"></use> | ||
</svg> | ||
</div> | ||
{% else %} | ||
{% image value.image original class=extra_classes alt=alt %} | ||
{% endif %} |
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