correctif(liste-numerotés): surcharge le style des listes numéroté du DSFR qui empechent l'usage que peuvent en faire nos usagers

This commit is contained in:
Martin 2023-07-27 05:37:27 +02:00 committed by Paul Chavard
parent 2daee794bc
commit fe712d6659
3 changed files with 12 additions and 2 deletions

View file

@ -150,7 +150,7 @@ linters:
properties: {}
PseudoElement:
enabled: true
enabled: false # otherwise rules on ::marker fails
# To enable later
QualifyingElement:

View file

@ -1,5 +1,15 @@
@import "colors";
// overwrite DSFR style for SimpleFormatComponent, some user use markdown with
// ordered list having paragraph between list item
.fr-ol-content--override {
list-style-type: decimal;
li::marker {
content: inherit;
}
}
// override default transparent background on inputs & font-size to 16px by default
input,
textarea,

View file

@ -51,7 +51,7 @@ class SimpleFormatComponent < ApplicationComponent
end.join.lstrip
@renderer = Redcarpet::Markdown.new(
Redcarpet::BareRenderer.new(class_names_map:),
Redcarpet::BareRenderer.new(class_names_map: { list: 'fr-ol-content--override' }),
REDCARPET_EXTENSIONS.merge(autolink: @allow_a)
)
end