diff options
| author | Gaƫl Poupard <[email protected]> | 2020-02-06 08:01:02 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-02-06 09:01:02 +0200 |
| commit | 8f94ed8e30f1a745d40b9f67f990438f51af4eff (patch) | |
| tree | 73a4057359c91f71a08044cd2b895e3d5d4426d6 | |
| parent | cef9b4e2ee82b127c9009a92aea09367c3b0efdd (diff) | |
| download | bootstrap-8f94ed8e30f1a745d40b9f67f990438f51af4eff.tar.xz bootstrap-8f94ed8e30f1a745d40b9f67f990438f51af4eff.zip | |
docs(SVG placeholder): add focusable=false to placeholder SVGs (#30075)
Co-authored-by: XhmikosR <[email protected]>
| -rw-r--r-- | site/layouts/shortcodes/placeholder.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/site/layouts/shortcodes/placeholder.html b/site/layouts/shortcodes/placeholder.html index 83f44aec9..03fbd05df 100644 --- a/site/layouts/shortcodes/placeholder.html +++ b/site/layouts/shortcodes/placeholder.html @@ -23,7 +23,7 @@ {{- $show_title := not (eq $title "false") -}} {{- $show_text := not (eq $text "false") -}} -<svg class="bd-placeholder-img{{ with $class }} {{ . }}{{ end }}" width="{{ $width }}" height="{{ $height }}" xmlns="http://www.w3.org/2000/svg"{{ if (or $show_title $show_text) }} aria-label="{{ if $show_title }}{{ $title }}{{ if $show_text }}: {{ end }}{{ end }}{{ if ($show_text) }}{{ $text }}{{ end }}"{{ end }} preserveAspectRatio="xMidYMid slice" role="img"> +<svg class="bd-placeholder-img{{ with $class }} {{ . }}{{ end }}" width="{{ $width }}" height="{{ $height }}" xmlns="http://www.w3.org/2000/svg"{{ if (or $show_title $show_text) }} aria-label="{{ if $show_title }}{{ $title }}{{ if $show_text }}: {{ end }}{{ end }}{{ if ($show_text) }}{{ $text }}{{ end }}"{{ end }} preserveAspectRatio="xMidYMid slice" role="img" focusable="false"> {{- if $show_title -}}<title>{{ $title }}</title>{{- end -}} <rect width="100%" height="100%" fill="{{ $background }}"/> {{- if $show_text -}}<text x="50%" y="50%" fill="{{ $color }}" dy=".3em">{{ $text }}</text>{{- end -}} |
