]> _ Git - fluidbook-html5.git/commitdiff
wip #7779
authorsoufiane <soufiane@cubedesigners.com>
Mon, 22 Dec 2025 14:07:59 +0000 (15:07 +0100)
committersoufiane <soufiane@cubedesigners.com>
Mon, 22 Dec 2025 14:07:59 +0000 (15:07 +0100)
images/accessibility/zoom-out.svg
js/libs/fluidbook/fluidbook.accessibility.js

index 2f514d01f4eab55cea9ae6e5592aced14a5d88da..118896b82ed936e5a2599604b4e22dc4e8d92f55 100644 (file)
@@ -1,9 +1,44 @@
-<svg xmlns="http://www.w3.org/2000/svg" width="113.5" height="39.5" viewBox="0 0 113.5 39.5">
-  <g id="zoom-out" transform="translate(-55.75 -2789.677)">
-    <rect id="Rectangle_76" data-name="Rectangle 76" width="52" height="38" rx="2.754" transform="translate(56.5 2790.427)" fill="none" stroke="#1d1d1b" stroke-miterlimit="10" stroke-width="1.5"/>
-    <text id="_" data-name="+" transform="translate(118.5 2816.927)" fill="#1d1d1b" font-size="18" font-family="OpenSans, Open Sans"><tspan x="-5.146" y="0">+</tspan></text>
-    <path id="Rectangle_77" data-name="Rectangle 77" d="M2.5,0h35A2.5,2.5,0,0,1,40,2.5v33A2.5,2.5,0,0,1,37.5,38H2.5A2.5,2.5,0,0,1,0,35.5V2.5A2.5,2.5,0,0,1,2.5,0Z" transform="translate(128.5 2790.427)" fill="none" stroke="#1d1d1b" stroke-miterlimit="10" stroke-width="1.5"/>
-    <text id="Ctrl" transform="translate(83 2816.927)" fill="#1d1d1b" font-size="18" font-family="OpenSans, Open Sans"><tspan x="-14.805" y="0">Ctrl</tspan></text>
-    <text id="_-" data-name="-" transform="translate(149 2816.927)" fill="#1d1d1b" font-size="18" font-family="OpenSans, Open Sans"><tspan x="-2.896" y="0">-</tspan></text>
+<?xml version="1.0" encoding="UTF-8"?>
+<svg id="Calque_1" xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 113.5 39.5">
+<!-- Generator: Adobe Illustrator 29.8.1, SVG Export Plug-In . SVG Version: 2.1.1 Build 2)  -->
+<defs>
+  <style>
+    .st0, .cls-1 {
+    fill: #1d1d1b;
+    }
+
+    .st1 {
+    isolation: isolate;
+    }
+
+    .st2 {
+    fill: none;
+    stroke: #1d1d1b;
+    stroke-miterlimit: 10;
+    stroke-width: 1.5px;
+    }
+  </style>
+</defs>
+<g id="zoom-in">
+  <rect id="Rectangle_74" class="st2" x=".8" y=".7" width="52" height="38" rx="2.8" ry="2.8"/>
+  <g id="_" class="st1">
+    <g class="st1">
+      <path class="st0" d="M63.3,19.3h3.6v1.2h-3.6v3.7h-1.2v-3.7h-3.6v-1.2h3.6v-3.8h1.2v3.8Z"/>
+    </g>
   </g>
-</svg>
+  <path id="Rectangle_75" class="st2" d="M75.2.7h35c1.4,0,2.5,1.1,2.5,2.5v33c0,1.4-1.1,2.5-2.5,2.5h-35c-1.4,0-2.5-1.1-2.5-2.5V3.2c0-1.4,1.1-2.5,2.5-2.5Z"/>
+  <g id="Ctrl" class="st1">
+    <g class="st1">
+      <path class="st0" d="M19.7,14.6c-1.4,0-2.5.5-3.3,1.4-.8.9-1.2,2.2-1.2,3.9s.4,3,1.2,3.9c.8.9,1.9,1.4,3.4,1.4s1.9-.2,3.1-.5v1.3c-.9.3-2,.5-3.3.5-1.9,0-3.4-.6-4.4-1.7s-1.5-2.8-1.5-4.9.2-2.5.7-3.5,1.2-1.8,2.1-2.3,2-.8,3.3-.8,2.5.2,3.5.7l-.6,1.3c-1-.5-1.9-.7-2.9-.7Z"/>
+      <path class="st0" d="M28.5,25.2c.3,0,.5,0,.7,0,.2,0,.4,0,.6-.1v1.1c-.2,0-.4.1-.7.2-.3,0-.6,0-.8,0-1.9,0-2.8-1-2.8-2.9v-5.7h-1.4v-.7l1.4-.6.6-2.1h.8v2.2h2.8v1.1h-2.8v5.7c0,.6.1,1,.4,1.3s.7.5,1.1.5Z"/>
+      <path class="st0" d="M36.1,16.4c.4,0,.8,0,1.2.1l-.2,1.4c-.4,0-.8-.1-1.1-.1-.8,0-1.4.3-2,.9s-.8,1.4-.8,2.4v5.2h-1.5v-9.6h1.2l.2,1.8h0c.4-.6.8-1.1,1.3-1.5s1.1-.5,1.7-.5Z"/>
+      <path class="st0" d="M40.5,26.3h-1.5v-13.7h1.5v13.7Z"/>
+    </g>
+  </g>
+  <g id="_-" data-name=" -" class="cls-1">
+    <g class="cls-1">
+      <path class="cls-3" d="M90.93,22.84v-1.58h4.85v1.58h-4.85Z"/>
+    </g>
+  </g>
+</g>
+</svg>
\ No newline at end of file
index d604a84b0cf15f1f3b8d2239c91015dd1caa99b2..1ea2b587c0544b849a8e88e78a909614308f164a 100644 (file)
@@ -86,6 +86,7 @@ FluidbookAccessibility.prototype = {
                 icon: 'play-right-page-audio',
                 title: this.fluidbook.l10n.__('Shift and arrow right to <strong>play the right page audiodescription</strong>'),
                 section: 'Navigation',
+                if: this.fluidbook.settings.audiodescription
             },
             {
                 icon: 'next-page',