]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
docs(SVG placeholder): add focusable=false to placeholder SVGs (#30075)
authorGaël Poupard <ffoodd@users.noreply.github.com>
Thu, 6 Feb 2020 07:01:02 +0000 (08:01 +0100)
committerGitHub <noreply@github.com>
Thu, 6 Feb 2020 07:01:02 +0000 (09:01 +0200)
Co-authored-by: XhmikosR <xhmikosr@gmail.com>
site/layouts/shortcodes/placeholder.html

index 83f44aec9e220da7be28f14b8a302a191927ddee..03fbd05df025168e83ac93781443b9cfd66d932a 100644 (file)
@@ -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 -}}