@oiz/stzh-components 2.2.0-beta → 2.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (288) hide show
  1. package/dist/cjs/{animation-utils-cfa35ce7.js → animation-utils-54d784c2.js} +3 -0
  2. package/dist/cjs/{app-globals-f4ad4e99.js → app-globals-b6d82414.js} +1 -1
  3. package/dist/cjs/loader.cjs.js +2 -2
  4. package/dist/cjs/stzh-accordion-item.cjs.entry.js +5 -2
  5. package/dist/cjs/stzh-badge_3.cjs.entry.js +2 -2
  6. package/dist/cjs/stzh-calendar.cjs.entry.js +1 -1
  7. package/dist/cjs/stzh-card_3.cjs.entry.js +40 -10
  8. package/dist/cjs/stzh-checkbox.cjs.entry.js +1 -1
  9. package/dist/cjs/stzh-checkboxgroup.cjs.entry.js +1 -1
  10. package/dist/cjs/stzh-chip.cjs.entry.js +6 -5
  11. package/dist/cjs/stzh-components.cjs.js +2 -2
  12. package/dist/cjs/stzh-datalist_2.cjs.entry.js +1 -1
  13. package/dist/cjs/stzh-datamessagelist-item.cjs.entry.js +3 -2
  14. package/dist/cjs/stzh-datepicker_3.cjs.entry.js +2 -2
  15. package/dist/cjs/stzh-details.cjs.entry.js +4 -1
  16. package/dist/cjs/stzh-dialog.cjs.entry.js +4 -4
  17. package/dist/cjs/stzh-dropdown.cjs.entry.js +1 -1
  18. package/dist/cjs/stzh-flyingfocus.cjs.entry.js +1 -1
  19. package/dist/cjs/stzh-ghettobox_2.cjs.entry.js +1 -1
  20. package/dist/cjs/stzh-input.cjs.entry.js +1 -1
  21. package/dist/cjs/stzh-link.cjs.entry.js +1 -1
  22. package/dist/cjs/stzh-menu_2.cjs.entry.js +1 -1
  23. package/dist/cjs/stzh-message.cjs.entry.js +1 -1
  24. package/dist/cjs/stzh-microsite-teaserlist.cjs.entry.js +1 -1
  25. package/dist/cjs/stzh-olmap.cjs.entry.js +1 -1
  26. package/dist/cjs/stzh-popover.cjs.entry.js +19 -5
  27. package/dist/cjs/stzh-progressbar-item.cjs.entry.js +1 -1
  28. package/dist/cjs/stzh-textandimage.cjs.entry.js +3 -1
  29. package/dist/cjs/stzh-toggle.cjs.entry.js +1 -1
  30. package/dist/cjs/stzh-tooltip.cjs.entry.js +28 -7
  31. package/dist/cjs/stzh-upload.cjs.entry.js +1 -1
  32. package/dist/cjs/stzh-vbz-linechip.cjs.entry.js +2 -1
  33. package/dist/collection/assets/i18n/de.json +9 -6
  34. package/dist/collection/assets/i18n/en.json +10 -7
  35. package/dist/collection/components/stzh-accordion/stzh-accordion.stories.js +12 -1
  36. package/dist/collection/components/stzh-accordion-item/stzh-accordion-item.css +1 -0
  37. package/dist/collection/components/stzh-accordion-item/stzh-accordion-item.js +3 -0
  38. package/dist/collection/components/stzh-button/stzh-button.css +1 -0
  39. package/dist/collection/components/stzh-button/stzh-button.stories.js +12 -12
  40. package/dist/collection/components/stzh-calendar/stzh-calendar.css +1 -0
  41. package/dist/collection/components/stzh-card/stzh-card.css +36 -0
  42. package/dist/collection/components/stzh-card/stzh-card.js +26 -4
  43. package/dist/collection/components/stzh-checkbox/stzh-checkbox.css +1 -0
  44. package/dist/collection/components/stzh-checkboxgroup/stzh-checkboxgroup.css +1 -0
  45. package/dist/collection/components/stzh-chip/stzh-chip.css +52 -4
  46. package/dist/collection/components/stzh-chip/stzh-chip.js +23 -5
  47. package/dist/collection/components/stzh-chip-select/stzh-chip-select.css +2 -0
  48. package/dist/collection/components/stzh-chip-select/stzh-chip-select.js +31 -4
  49. package/dist/collection/components/stzh-datalist-item/stzh-datalist-item.css +1 -0
  50. package/dist/collection/components/stzh-datamessagelist-item/stzh-datamessagelist-item.css +11 -0
  51. package/dist/collection/components/stzh-datamessagelist-item/stzh-datamessagelist-item.js +3 -2
  52. package/dist/collection/components/stzh-details/stzh-details.js +3 -0
  53. package/dist/collection/components/stzh-dialog/stzh-dialog.css +1 -0
  54. package/dist/collection/components/stzh-dialog/stzh-dialog.js +3 -3
  55. package/dist/collection/components/stzh-dropdown/stzh-dropdown.css +3 -0
  56. package/dist/collection/components/stzh-ghettobox/stzh-ghettobox.css +1 -0
  57. package/dist/collection/components/stzh-header/stzh-header.stories.js +1 -1
  58. package/dist/collection/components/stzh-icon/stzh-icon.js +1 -1
  59. package/dist/collection/components/stzh-input/stzh-input.css +1 -0
  60. package/dist/collection/components/stzh-link/stzh-link.css +1 -0
  61. package/dist/collection/components/stzh-menu-item/stzh-menu-item.css +1 -0
  62. package/dist/collection/components/stzh-message/stzh-message.css +1 -0
  63. package/dist/collection/components/stzh-microsite-teaserlist/stzh-microsite-teaserlist.js +1 -1
  64. package/dist/collection/components/stzh-olmap/stzh-olmap.js +1 -1
  65. package/dist/collection/components/stzh-pagebottom/stzh-pagebottom.stories.js +1 -1
  66. package/dist/collection/components/stzh-popover/stzh-popover.css +2 -0
  67. package/dist/collection/components/stzh-popover/stzh-popover.js +18 -4
  68. package/dist/collection/components/stzh-progressbar-item/stzh-progressbar-item.css +107 -6
  69. package/dist/collection/components/stzh-radio/stzh-radio.css +1 -0
  70. package/dist/collection/components/stzh-radiogroup/stzh-radiogroup.css +1 -0
  71. package/dist/collection/components/stzh-textandimage/stzh-textandimage.css +38 -2
  72. package/dist/collection/components/stzh-textandimage/stzh-textandimage.js +20 -0
  73. package/dist/collection/components/stzh-toggle/stzh-toggle.css +1 -0
  74. package/dist/collection/components/stzh-tooltip/stzh-tooltip.css +1 -0
  75. package/dist/collection/components/stzh-tooltip/stzh-tooltip.js +27 -6
  76. package/dist/collection/components/stzh-upload/stzh-upload.css +1 -0
  77. package/dist/collection/components/stzh-vbz-linechip/stzh-vbz-linechip.js +2 -1
  78. package/dist/collection/pages/egov.stories.js +9 -9
  79. package/dist/collection/pages/example.stories.js +1 -1
  80. package/dist/collection/pages/meinkonto.stories.js +3 -3
  81. package/dist/collection/patterns/contact.stories.js +56 -30
  82. package/dist/collection/patterns/subpages.stories.js +5 -5
  83. package/dist/collection/utils/animation-utils.js +3 -0
  84. package/dist/components/animation-utils.js +3 -0
  85. package/dist/components/index.js +1 -1
  86. package/dist/components/stzh-accordion-item.js +4 -1
  87. package/dist/components/stzh-button2.js +1 -1
  88. package/dist/components/stzh-calendar2.js +1 -1
  89. package/dist/components/stzh-card2.js +9 -5
  90. package/dist/components/stzh-checkbox.js +1 -1
  91. package/dist/components/stzh-checkboxgroup.js +1 -1
  92. package/dist/components/stzh-chip-select2.js +32 -5
  93. package/dist/components/stzh-chip2.js +7 -5
  94. package/dist/components/stzh-datalist-item2.js +1 -1
  95. package/dist/components/stzh-datamessagelist-item.js +3 -2
  96. package/dist/components/stzh-details.js +3 -0
  97. package/dist/components/stzh-dialog.js +4 -4
  98. package/dist/components/stzh-dropdown2.js +1 -1
  99. package/dist/components/stzh-ghettobox2.js +1 -1
  100. package/dist/components/stzh-icon2.js +1 -1
  101. package/dist/components/stzh-input2.js +1 -1
  102. package/dist/components/stzh-link2.js +1 -1
  103. package/dist/components/stzh-menu-item2.js +1 -1
  104. package/dist/components/stzh-message.js +1 -1
  105. package/dist/components/stzh-microsite-teaserlist.js +1 -1
  106. package/dist/components/stzh-olmap.js +1 -1
  107. package/dist/components/stzh-popover2.js +18 -4
  108. package/dist/components/stzh-progressbar-item2.js +1 -1
  109. package/dist/components/stzh-radio2.js +1 -1
  110. package/dist/components/stzh-radiogroup2.js +1 -1
  111. package/dist/components/stzh-textandimage.js +4 -1
  112. package/dist/components/stzh-toggle.js +1 -1
  113. package/dist/components/stzh-tooltip2.js +27 -6
  114. package/dist/components/stzh-upload.js +1 -1
  115. package/dist/components/stzh-vbz-linechip2.js +2 -1
  116. package/dist/esm/{animation-utils-25c74e5b.js → animation-utils-e234a5f8.js} +3 -0
  117. package/dist/esm/{app-globals-17c2ba8d.js → app-globals-ff581b69.js} +1 -1
  118. package/dist/esm/loader.js +2 -2
  119. package/dist/esm/stzh-accordion-item.entry.js +5 -2
  120. package/dist/esm/stzh-badge_3.entry.js +2 -2
  121. package/dist/esm/stzh-calendar.entry.js +1 -1
  122. package/dist/esm/stzh-card_3.entry.js +40 -10
  123. package/dist/esm/stzh-checkbox.entry.js +1 -1
  124. package/dist/esm/stzh-checkboxgroup.entry.js +1 -1
  125. package/dist/esm/stzh-chip.entry.js +6 -5
  126. package/dist/esm/stzh-components.js +2 -2
  127. package/dist/esm/stzh-datalist_2.entry.js +1 -1
  128. package/dist/esm/stzh-datamessagelist-item.entry.js +3 -2
  129. package/dist/esm/stzh-datepicker_3.entry.js +2 -2
  130. package/dist/esm/stzh-details.entry.js +4 -1
  131. package/dist/esm/stzh-dialog.entry.js +4 -4
  132. package/dist/esm/stzh-dropdown.entry.js +1 -1
  133. package/dist/esm/stzh-flyingfocus.entry.js +1 -1
  134. package/dist/esm/stzh-ghettobox_2.entry.js +1 -1
  135. package/dist/esm/stzh-input.entry.js +1 -1
  136. package/dist/esm/stzh-link.entry.js +1 -1
  137. package/dist/esm/stzh-menu_2.entry.js +1 -1
  138. package/dist/esm/stzh-message.entry.js +1 -1
  139. package/dist/esm/stzh-microsite-teaserlist.entry.js +1 -1
  140. package/dist/esm/stzh-olmap.entry.js +1 -1
  141. package/dist/esm/stzh-popover.entry.js +19 -5
  142. package/dist/esm/stzh-progressbar-item.entry.js +1 -1
  143. package/dist/esm/stzh-textandimage.entry.js +3 -1
  144. package/dist/esm/stzh-toggle.entry.js +1 -1
  145. package/dist/esm/stzh-tooltip.entry.js +28 -7
  146. package/dist/esm/stzh-upload.entry.js +1 -1
  147. package/dist/esm/stzh-vbz-linechip.entry.js +2 -1
  148. package/dist/esm-es5/animation-utils-e234a5f8.js +1 -0
  149. package/dist/esm-es5/app-globals-ff581b69.js +1 -0
  150. package/dist/esm-es5/loader.js +1 -1
  151. package/dist/esm-es5/stzh-accordion-item.entry.js +1 -1
  152. package/dist/esm-es5/stzh-badge_3.entry.js +1 -1
  153. package/dist/esm-es5/stzh-calendar.entry.js +1 -1
  154. package/dist/esm-es5/stzh-card_3.entry.js +1 -1
  155. package/dist/esm-es5/stzh-checkbox.entry.js +1 -1
  156. package/dist/esm-es5/stzh-checkboxgroup.entry.js +1 -1
  157. package/dist/esm-es5/stzh-chip.entry.js +1 -1
  158. package/dist/esm-es5/stzh-components.js +1 -1
  159. package/dist/esm-es5/stzh-datalist_2.entry.js +1 -1
  160. package/dist/esm-es5/stzh-datamessagelist-item.entry.js +1 -1
  161. package/dist/esm-es5/stzh-datepicker_3.entry.js +1 -1
  162. package/dist/esm-es5/stzh-details.entry.js +1 -1
  163. package/dist/esm-es5/stzh-dialog.entry.js +1 -1
  164. package/dist/esm-es5/stzh-dropdown.entry.js +1 -1
  165. package/dist/esm-es5/stzh-flyingfocus.entry.js +1 -1
  166. package/dist/esm-es5/stzh-ghettobox_2.entry.js +1 -1
  167. package/dist/esm-es5/stzh-input.entry.js +1 -1
  168. package/dist/esm-es5/stzh-link.entry.js +1 -1
  169. package/dist/esm-es5/stzh-menu_2.entry.js +1 -1
  170. package/dist/esm-es5/stzh-message.entry.js +1 -1
  171. package/dist/esm-es5/stzh-microsite-teaserlist.entry.js +1 -1
  172. package/dist/esm-es5/stzh-olmap.entry.js +1 -1
  173. package/dist/esm-es5/stzh-popover.entry.js +1 -1
  174. package/dist/esm-es5/stzh-progressbar-item.entry.js +1 -1
  175. package/dist/esm-es5/stzh-textandimage.entry.js +1 -1
  176. package/dist/esm-es5/stzh-toggle.entry.js +1 -1
  177. package/dist/esm-es5/stzh-tooltip.entry.js +1 -1
  178. package/dist/esm-es5/stzh-upload.entry.js +1 -1
  179. package/dist/stzh-components/assets/i18n/de.json +9 -6
  180. package/dist/stzh-components/assets/i18n/en.json +10 -7
  181. package/dist/stzh-components/p-06d9b884.system.entry.js +1 -0
  182. package/dist/stzh-components/{p-1da26ca1.entry.js → p-0743d7fa.entry.js} +1 -1
  183. package/dist/stzh-components/p-0850a2e1.system.entry.js +1 -0
  184. package/dist/stzh-components/{p-2b5b1e4a.system.entry.js → p-0cc8bbd7.system.entry.js} +1 -1
  185. package/dist/stzh-components/p-12a2afe9.entry.js +1 -0
  186. package/dist/stzh-components/p-17645237.entry.js +1 -0
  187. package/dist/stzh-components/p-18cb06e2.entry.js +1 -0
  188. package/dist/stzh-components/p-1ae4d600.system.entry.js +1 -0
  189. package/dist/stzh-components/{p-037357fc.system.entry.js → p-21cad060.system.entry.js} +1 -1
  190. package/dist/stzh-components/{p-171c5795.system.entry.js → p-23829f75.system.entry.js} +1 -1
  191. package/dist/stzh-components/p-2bec3c77.entry.js +1 -0
  192. package/dist/stzh-components/p-2d340222.system.entry.js +1 -0
  193. package/dist/stzh-components/{p-2862cdd8.system.entry.js → p-3200f52a.system.entry.js} +1 -1
  194. package/dist/stzh-components/p-385dda6c.system.entry.js +1 -0
  195. package/dist/stzh-components/p-3ad67331.entry.js +1 -0
  196. package/dist/stzh-components/p-3e850dce.entry.js +1 -0
  197. package/dist/stzh-components/p-4704588f.system.entry.js +1 -0
  198. package/dist/stzh-components/{p-c26aec94.entry.js → p-4b369bac.entry.js} +1 -1
  199. package/dist/stzh-components/p-5011f10c.js +1 -0
  200. package/dist/stzh-components/{p-6267a327.system.js → p-5494f37d.system.js} +1 -1
  201. package/dist/stzh-components/p-557f07b5.system.entry.js +1 -0
  202. package/dist/stzh-components/p-5790eb4f.system.entry.js +1 -0
  203. package/dist/stzh-components/p-57a0f895.entry.js +1 -0
  204. package/dist/stzh-components/p-57f8596f.system.entry.js +1 -0
  205. package/dist/stzh-components/p-586a8b3f.entry.js +1 -0
  206. package/dist/stzh-components/p-63d94a57.system.entry.js +1 -0
  207. package/dist/stzh-components/{p-f37be5d7.entry.js → p-67c6f0f2.entry.js} +1 -1
  208. package/dist/stzh-components/{p-f59b3545.system.entry.js → p-6d009f56.system.entry.js} +1 -1
  209. package/dist/stzh-components/{p-213959b7.entry.js → p-76165227.entry.js} +1 -1
  210. package/dist/stzh-components/{p-3145cd2f.entry.js → p-7704b10b.entry.js} +1 -1
  211. package/dist/stzh-components/p-7941cf38.js +1 -0
  212. package/dist/stzh-components/{p-af63f1a4.entry.js → p-7b86c022.entry.js} +1 -1
  213. package/dist/stzh-components/p-7c26f80f.system.entry.js +1 -0
  214. package/dist/stzh-components/p-84b9f66f.system.entry.js +1 -0
  215. package/dist/stzh-components/p-853a1f92.entry.js +1 -0
  216. package/dist/stzh-components/p-8991d3bc.entry.js +1 -0
  217. package/dist/stzh-components/p-8fa2fb95.system.entry.js +1 -0
  218. package/dist/stzh-components/p-9072a490.system.entry.js +1 -0
  219. package/dist/stzh-components/p-912706bb.entry.js +1 -0
  220. package/dist/stzh-components/{p-68400ee7.entry.js → p-aae4655f.entry.js} +1 -1
  221. package/dist/stzh-components/p-ac1a6085.system.entry.js +1 -0
  222. package/dist/stzh-components/{p-a17754c7.system.entry.js → p-afedafa6.system.entry.js} +1 -1
  223. package/dist/stzh-components/{p-5c3c9ad4.entry.js → p-b3dc4913.entry.js} +1 -1
  224. package/dist/stzh-components/p-b937ae70.system.js +1 -0
  225. package/dist/stzh-components/p-c63aecaa.system.entry.js +1 -0
  226. package/dist/stzh-components/p-c87e12de.system.entry.js +1 -0
  227. package/dist/stzh-components/p-cfd22a5e.system.entry.js +1 -0
  228. package/dist/stzh-components/p-d240494d.entry.js +1 -0
  229. package/dist/stzh-components/p-d6ec20c8.system.entry.js +1 -0
  230. package/dist/stzh-components/{p-af0ab448.system.entry.js → p-d9bf09b1.system.entry.js} +1 -1
  231. package/dist/stzh-components/p-e016ceb9.entry.js +1 -0
  232. package/dist/stzh-components/{p-4c7e52aa.entry.js → p-e0f063ac.entry.js} +1 -1
  233. package/dist/stzh-components/{p-0b9dc96d.system.js → p-e32bc982.system.js} +1 -1
  234. package/dist/stzh-components/p-ea9ca52b.entry.js +1 -0
  235. package/dist/stzh-components/{p-34b45788.entry.js → p-ec7b6ce8.entry.js} +1 -1
  236. package/dist/stzh-components/p-ef3da23b.entry.js +1 -0
  237. package/dist/stzh-components/{p-3848d8ee.entry.js → p-f133eba2.entry.js} +1 -1
  238. package/dist/stzh-components/p-fdb906b9.system.entry.js +1 -0
  239. package/dist/stzh-components/{p-f5db6234.entry.js → p-fee6a938.entry.js} +1 -1
  240. package/dist/stzh-components/stzh-components.esm.js +1 -1
  241. package/dist/stzh-components/stzh-components.js +1 -1
  242. package/dist/types/components/stzh-datamessagelist-item/stzh-datamessagelist-item.localization.d.ts +1 -0
  243. package/dist/types/components/stzh-popover/stzh-popover.localization.d.ts +1 -0
  244. package/dist/types/components/stzh-tooltip/stzh-tooltip.localization.d.ts +1 -0
  245. package/dist/types/components.d.ts +26 -2
  246. package/dist/types/index.d.ts +5 -0
  247. package/dist/vscode-data.json +13 -1
  248. package/package.json +1 -1
  249. package/dist/esm-es5/animation-utils-25c74e5b.js +0 -1
  250. package/dist/esm-es5/app-globals-17c2ba8d.js +0 -1
  251. package/dist/stzh-components/p-02fd7470.entry.js +0 -1
  252. package/dist/stzh-components/p-04a45622.system.entry.js +0 -1
  253. package/dist/stzh-components/p-0b264a7a.entry.js +0 -1
  254. package/dist/stzh-components/p-1ca12032.system.entry.js +0 -1
  255. package/dist/stzh-components/p-1fe1169e.entry.js +0 -1
  256. package/dist/stzh-components/p-231e6e6a.system.entry.js +0 -1
  257. package/dist/stzh-components/p-2a5855f8.js +0 -1
  258. package/dist/stzh-components/p-31029226.entry.js +0 -1
  259. package/dist/stzh-components/p-311813bc.system.entry.js +0 -1
  260. package/dist/stzh-components/p-38f9cbf3.system.entry.js +0 -1
  261. package/dist/stzh-components/p-3905ca20.entry.js +0 -1
  262. package/dist/stzh-components/p-4228cd58.system.entry.js +0 -1
  263. package/dist/stzh-components/p-4bd7dafb.system.entry.js +0 -1
  264. package/dist/stzh-components/p-4cd9f5c7.system.entry.js +0 -1
  265. package/dist/stzh-components/p-55f6fa41.system.entry.js +0 -1
  266. package/dist/stzh-components/p-5b379647.system.entry.js +0 -1
  267. package/dist/stzh-components/p-65675e11.entry.js +0 -1
  268. package/dist/stzh-components/p-7684506e.system.entry.js +0 -1
  269. package/dist/stzh-components/p-7da446d5.js +0 -1
  270. package/dist/stzh-components/p-83830baa.system.entry.js +0 -1
  271. package/dist/stzh-components/p-84c86e4c.system.entry.js +0 -1
  272. package/dist/stzh-components/p-88cbd2c0.entry.js +0 -1
  273. package/dist/stzh-components/p-99f92c6d.system.entry.js +0 -1
  274. package/dist/stzh-components/p-a795868f.entry.js +0 -1
  275. package/dist/stzh-components/p-ab28e094.system.entry.js +0 -1
  276. package/dist/stzh-components/p-addc48e5.entry.js +0 -1
  277. package/dist/stzh-components/p-b0fe9349.entry.js +0 -1
  278. package/dist/stzh-components/p-c065387a.entry.js +0 -1
  279. package/dist/stzh-components/p-c42435be.entry.js +0 -1
  280. package/dist/stzh-components/p-cfc0bc2e.system.entry.js +0 -1
  281. package/dist/stzh-components/p-d1d5825d.entry.js +0 -1
  282. package/dist/stzh-components/p-d4405931.system.entry.js +0 -1
  283. package/dist/stzh-components/p-dce19efd.entry.js +0 -1
  284. package/dist/stzh-components/p-e2e54f09.system.js +0 -1
  285. package/dist/stzh-components/p-e71cd5cd.system.entry.js +0 -1
  286. package/dist/stzh-components/p-e72ca013.system.entry.js +0 -1
  287. package/dist/stzh-components/p-e812d35e.system.entry.js +0 -1
  288. package/dist/stzh-components/p-f792fc8f.entry.js +0 -1
@@ -118,6 +118,17 @@
118
118
  display: inline-flex;
119
119
  border-radius: var(--border-radius);
120
120
  }
121
+ @media (forced-colors: active), (-ms-high-contrast: active) {
122
+ :host {
123
+ --hover-color: Highlight;
124
+ --hover-border: 0.0625rem solid Highlight;
125
+ --hover-background-color: Canvas;
126
+ --hover-remove-color: Highlight;
127
+ --hover-remove-background-color: Canvas;
128
+ --hover-icon-color: Highlight;
129
+ --hover-counter-color: Highlight;
130
+ }
131
+ }
121
132
  :host[size=small] {
122
133
  --height: 1.5rem;
123
134
  --border-radius: 0.75rem;
@@ -152,35 +163,59 @@
152
163
  --hover-icon-color: var(--stzh-color-error);
153
164
  --hover-counter-color: var(--stzh-color-error);
154
165
  }
166
+ @media (forced-colors: active), (-ms-high-contrast: active) {
167
+ :host[type=important] {
168
+ --hover-color: Highlight;
169
+ --hover-icon-color: Highlight;
170
+ --hover-counter-color: Highlight;
171
+ }
172
+ }
155
173
  :host[active]:not([active=false]) {
156
174
  --color: var(--stzh-color-white);
157
175
  --border: 0.0625rem solid transparent;
158
176
  --remove-color: var(--stzh-color-white);
159
177
  --background-color: var(--stzh-color-primary, var(--stzh-color-zueriblue));
160
- --counter-color: var(--stzh-color-white48);
161
178
  --icon-color: var(--stzh-color-white);
179
+ --counter-color: var(--stzh-color-white48);
162
180
  --hover-color: var(--stzh-color-white);
163
181
  --hover-border: 0.0625rem solid transparent;
164
182
  --hover-background-color: var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark));
165
183
  --hover-remove-color: var(--stzh-color-white);
166
184
  --hover-remove-background-color: var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark));
167
- --hover-counter-color: var(--stzh-color-white48);
168
185
  --hover-icon-color: var(--stzh-color-white);
186
+ --hover-counter-color: var(--stzh-color-white48);
187
+ }
188
+ @media (forced-colors: active), (-ms-high-contrast: active) {
189
+ :host[active]:not([active=false]) {
190
+ --color: SelectedItem;
191
+ --border: 0.0625rem solid SelectedItem;
192
+ --remove-color: SelectedItem;
193
+ --background-color: Canvas;
194
+ --icon-color: SelectedItem;
195
+ --counter-color: SelectedItem;
196
+ --hover-color: Highlight;
197
+ --hover-border: 0.0625rem solid Highlight;
198
+ --hover-background-color: Canvas;
199
+ --hover-remove-color: Highlight;
200
+ --hover-remove-background-color: Canvas;
201
+ --hover-icon-color: Highlight;
202
+ --hover-counter-color: Highlight;
203
+ }
169
204
  }
170
205
  :host[disabled]:not([disabled=false]) {
171
206
  --color: var(--stzh-color-grey25);
172
207
  --border: 0.0625rem solid var(--stzh-base-border-color);
173
208
  --remove-color: var(--stzh-color-grey13);
174
209
  --background-color: var(--stzh-color-white);
175
- --counter-color: var(--stzh-color-grey25);
176
210
  --icon-color: var(--stzh-color-grey25);
211
+ --counter-color: var(--stzh-color-grey25);
177
212
  --hover-color: var(--stzh-color-grey25);
178
213
  --hover-border: 0.0625rem solid var(--stzh-base-border-color);
179
214
  --hover-background-color: var(--stzh-color-white);
180
215
  --hover-remove-color: var(--stzh-color-grey13);
181
216
  --hover-remove-background-color: transparent;
182
- --hover-counter-color: var(--stzh-color-grey25);
183
217
  --hover-icon-color: var(--stzh-color-grey25);
218
+ --hover-counter-color: var(--stzh-color-grey25);
184
219
  }
185
220
 
186
221
  :host ::slotted(stzh-icon),
@@ -195,9 +230,21 @@
195
230
  /* Removeable */
196
231
  /* Disabled */
197
232
  }
233
+ .stzh-chip__vhidden {
234
+ border: 0;
235
+ clip: rect(0 0 0 0);
236
+ -webkit-clip-path: inset(100%);
237
+ clip-path: inset(100%);
238
+ width: 0.0625rem;
239
+ height: 0.0625rem;
240
+ overflow: hidden;
241
+ padding: 0;
242
+ position: absolute;
243
+ }
198
244
  .stzh-chip__button {
199
245
  font-size: var(--stzh-font-micro-font-size);
200
246
  line-height: var(--stzh-font-micro-text-line-height);
247
+ font-family: inherit;
201
248
  height: var(--height);
202
249
  display: flex;
203
250
  flex-direction: row;
@@ -235,6 +282,7 @@
235
282
  -webkit-appearance: none;
236
283
  -moz-appearance: none;
237
284
  appearance: none;
285
+ font-family: inherit;
238
286
  border: none;
239
287
  background: none;
240
288
  padding: 0;
@@ -53,6 +53,7 @@ export class StzhChip {
53
53
  this.removeLabel = "";
54
54
  this.active = false;
55
55
  this.disabled = false;
56
+ this.a11yTabindex = undefined;
56
57
  this.a11yLabel = undefined;
57
58
  this.a11yDescribedby = "";
58
59
  }
@@ -64,8 +65,8 @@ export class StzhChip {
64
65
  return (h(Fragment, null, h("div", { class: "stzh-chip__icon-wrapper" }, this.icon ?
65
66
  h("stzh-icon", { class: "stzh-chip__icon", name: this.icon })
66
67
  :
67
- h("slot", { name: "icon" })), h("div", { class: "stzh-chip__label" }, this.label ? this.label : h("slot", null)), this.counter &&
68
- h("div", { class: "stzh-chip__counter" }, this.counter)));
68
+ h("slot", { name: "icon" })), h("div", { class: "stzh-chip__label" }, this.label ? this.label : h("slot", null), h("span", { class: "stzh-chip__vhidden" }, "\u00A0(", this.counter, ")")), this.counter &&
69
+ h("div", { class: "stzh-chip__counter", "aria-hidden": "true" }, this.counter)));
69
70
  }
70
71
  render() {
71
72
  const classes = {
@@ -80,9 +81,9 @@ export class StzhChip {
80
81
  };
81
82
  return (h(Host, null, h("div", { class: classes }, this.removable &&
82
83
  h("button", { class: "stzh-chip__remove", onClick: this.onRemoveClick, disabled: this.disabled, "aria-label": this.removeLabel, type: "button" }, h("stzh-icon", { class: "stzh-chip__remove-icon", name: "close" })), this.href ?
83
- h("a", { class: "stzh-chip__button", href: this.disabled ? null : this.href, target: this.target, "aria-label": this.a11yLabel, "aria-describedby": this.a11yDescribedby, onClick: this.onClick, onFocus: this.onFocus, onBlur: this.onBlur }, this.renderInner())
84
+ h("a", { ref: (el) => (this.chip = el), class: "stzh-chip__button", href: this.disabled ? null : this.href, target: this.target, tabindex: this.a11yTabindex, "aria-label": this.a11yLabel, "aria-describedby": this.a11yDescribedby, onClick: this.onClick, onFocus: this.onFocus, onBlur: this.onBlur }, this.renderInner())
84
85
  :
85
- h("button", { class: "stzh-chip__button", disabled: this.disabled, type: "button", "aria-label": this.a11yLabel, "aria-describedby": this.a11yDescribedby, onClick: this.onClick, onFocus: this.onFocus, onBlur: this.onBlur }, this.renderInner()))));
86
+ h("button", { ref: (el) => (this.chip = el), class: "stzh-chip__button", disabled: this.disabled, type: "button", tabindex: this.a11yTabindex, "aria-label": this.a11yLabel, "aria-describedby": this.a11yDescribedby, onClick: this.onClick, onFocus: this.onFocus, onBlur: this.onBlur }, this.renderInner()))));
86
87
  }
87
88
  static get is() { return "stzh-chip"; }
88
89
  static get encapsulation() { return "scoped"; }
@@ -314,6 +315,23 @@ export class StzhChip {
314
315
  "reflect": true,
315
316
  "defaultValue": "false"
316
317
  },
318
+ "a11yTabindex": {
319
+ "type": "string",
320
+ "mutable": false,
321
+ "complexType": {
322
+ "original": "string",
323
+ "resolved": "string",
324
+ "references": {}
325
+ },
326
+ "required": false,
327
+ "optional": false,
328
+ "docs": {
329
+ "tags": [],
330
+ "text": "Tabindex of link/button"
331
+ },
332
+ "attribute": "a11y-tabindex",
333
+ "reflect": false
334
+ },
317
335
  "a11yLabel": {
318
336
  "type": "string",
319
337
  "mutable": false,
@@ -343,7 +361,7 @@ export class StzhChip {
343
361
  "optional": false,
344
362
  "docs": {
345
363
  "tags": [],
346
- "text": "Id for element which describes the button"
364
+ "text": "Id for element which describes the link/button"
347
365
  },
348
366
  "attribute": "a11y-describedby",
349
367
  "reflect": false,
@@ -152,6 +152,7 @@
152
152
  -webkit-appearance: none;
153
153
  -moz-appearance: none;
154
154
  appearance: none;
155
+ font-family: inherit;
155
156
  padding: 0;
156
157
  border: none;
157
158
  background-color: transparent;
@@ -174,6 +175,7 @@
174
175
  align-items: center;
175
176
  flex-wrap: wrap;
176
177
  margin: calc(var(--stzh-space-small) / -2) calc(var(--stzh-space-xsmall) / -2);
178
+ border-radius: var(--stzh-button-border-radius);
177
179
  }
178
180
  @media screen and (max-width: 1023px) {
179
181
  .stzh-chip-select__chips {
@@ -9,20 +9,44 @@ export class StzhChipSelect {
9
9
  constructor() {
10
10
  this._data = [];
11
11
  this._dataDropdown = [];
12
- this.chipClick = (data) => {
12
+ this.handleChipClick = (data) => {
13
13
  this.value = data.value;
14
14
  this.stzhChange.emit({
15
15
  component: "stzh-chip-select",
16
16
  value: this.value
17
17
  });
18
18
  };
19
- this.onDropdownChange = (event) => {
19
+ this.handleDropdownChange = (event) => {
20
20
  this.value = event.detail.value;
21
21
  this.stzhChange.emit({
22
22
  component: "stzh-chip-select",
23
23
  value: this.value
24
24
  });
25
25
  };
26
+ this.handleKeydown = (event) => {
27
+ let newIndex = null;
28
+ if (event.key === "ArrowUp" || event.key === "ArrowLeft") {
29
+ event.preventDefault();
30
+ const activeOptionIndex = this.getActiveOptionIndex();
31
+ if (activeOptionIndex > 0) {
32
+ newIndex = activeOptionIndex - 1;
33
+ }
34
+ }
35
+ else if (event.key === "ArrowDown" || event.key === "ArrowRight") {
36
+ event.preventDefault();
37
+ const activeOptionIndex = this.getActiveOptionIndex();
38
+ if (activeOptionIndex < this._data.length - 1) {
39
+ newIndex = activeOptionIndex + 1;
40
+ }
41
+ }
42
+ if (newIndex !== null) {
43
+ this.value = this._data[newIndex].value;
44
+ this.stzhChange.emit({
45
+ component: "stzh-chip-select",
46
+ value: this.value
47
+ });
48
+ }
49
+ };
26
50
  this.localization = undefined;
27
51
  this.data = [];
28
52
  this.name = undefined;
@@ -72,8 +96,11 @@ export class StzhChipSelect {
72
96
  }
73
97
  this.invalid = this._error.length > 0;
74
98
  }
99
+ getActiveOptionIndex() {
100
+ return this._data.findIndex(data => this.value === data.value);
101
+ }
75
102
  async componentWillLoad() {
76
- this.inputId = `stzh-chip-select-${chipSelectCounter++}`;
103
+ this.id = `stzh-chip-select-${chipSelectCounter++}`;
77
104
  this.dataWatcher(this.data);
78
105
  this.errorWatcher(this.error);
79
106
  if (!this.localization) {
@@ -93,7 +120,7 @@ export class StzhChipSelect {
93
120
  "stzh-chip-select--is-disabled": this.disabled,
94
121
  "stzh-chip-select--is-required": this.required
95
122
  };
96
- return (h(Host, null, h("div", { class: classes }, h("input", { type: "hidden", name: this.name, value: this.value }), h("div", { class: "stzh-chip-select__chips", role: "listbox" }, this._data.map((data) => (h("stzh-chip", { role: "option", class: "stzh-chip-select__chip", label: data.label, counter: data.counter, icon: data.icon, type: data.type, variant: data.variant, size: data.size, disabled: this.disabled || data.disabled, active: this.value === data.value, "aria-selected": this.value === data.value ? "true" : null, a11yDescribedby: `${this.inputId}-description ${this.a11yDescribedby}`, onClick: () => this.chipClick(data) })))), h(StzhInputDescription, { classPrefix: "stzh-chip-select", id: `${this.inputId}-description`, error: this._error, description: this.description, descriptionLong: this.descriptionLong, descriptionLongUsed: descriptionLongUsed, moreInfoButtonLabel: this.localization.$globals.moreInfoButtonLabel }), h("stzh-dropdown", { class: "stzh-chip-select__dropdown", disabled: this.disabled, error: this._error, description: this.description, descriptionLong: this.descriptionLong, required: this.required, invalid: this.invalid, items: [this.value], label: this.label, options: this._dataDropdown, onStzhChange: this.onDropdownChange }))));
123
+ return (h(Host, null, h("div", { class: classes }, h("input", { type: "hidden", name: this.name, value: this.value }), h("div", { class: "stzh-chip-select__chips", role: "listbox", tabindex: "0", "aria-multiselectable": "false", "aria-activedescendant": `${this.id}-option-${this.getActiveOptionIndex()}`, "aria-describedby": `${this.id}-description ${this.a11yDescribedby}`, onKeyDown: this.handleKeydown }, this._data.map((data, i) => (h("stzh-chip", { role: "option", class: "stzh-chip-select__chip", label: data.label, counter: data.counter, icon: data.icon, type: data.type, variant: data.variant, size: data.size, disabled: this.disabled || data.disabled, active: this.value === data.value, "aria-selected": this.value === data.value, id: `${this.id}-option-${i}`, a11yTabindex: "-1", onClick: () => this.handleChipClick(data) })))), h(StzhInputDescription, { classPrefix: "stzh-chip-select", id: `${this.id}-description`, error: this._error, description: this.description, descriptionLong: this.descriptionLong, descriptionLongUsed: descriptionLongUsed, moreInfoButtonLabel: this.localization.$globals.moreInfoButtonLabel }), h("stzh-dropdown", { class: "stzh-chip-select__dropdown", disabled: this.disabled, error: this._error, description: this.description, descriptionLong: this.descriptionLong, required: this.required, invalid: this.invalid, items: [this.value], label: this.label, options: this._dataDropdown, onStzhChange: this.handleDropdownChange }))));
97
124
  }
98
125
  static get is() { return "stzh-chip-select"; }
99
126
  static get encapsulation() { return "scoped"; }
@@ -146,6 +146,7 @@
146
146
  -webkit-appearance: none;
147
147
  -moz-appearance: none;
148
148
  appearance: none;
149
+ font-family: inherit;
149
150
  background: transparent;
150
151
  border: none;
151
152
  padding: 0;
@@ -126,6 +126,17 @@
126
126
  padding-right: var(--stzh-space-xlarge);
127
127
  }
128
128
  }
129
+ .stzh-datamessagelist-item__vhidden {
130
+ border: 0;
131
+ clip: rect(0 0 0 0);
132
+ -webkit-clip-path: inset(100%);
133
+ clip-path: inset(100%);
134
+ width: 0.0625rem;
135
+ height: 0.0625rem;
136
+ overflow: hidden;
137
+ padding: 0;
138
+ position: absolute;
139
+ }
129
140
  .stzh-datamessagelist-item__content {
130
141
  display: flex;
131
142
  flex-direction: column;
@@ -74,7 +74,8 @@ export class StzhDatamessagelistItem {
74
74
  "stzh-datamessagelist-item": true,
75
75
  "stzh-datamessagelist-item--is-unread": this.unread
76
76
  };
77
- return (h(Host, { role: "listitem" }, h("article", { class: classes }, h("div", { class: "stzh-datamessagelist-item__content" }, h("div", { class: "stzh-datamessagelist-item__text" }, h("h3", { class: "stzh-datamessagelist-item__heading" }, h("a", { class: "stzh-datamessagelist-item__heading-link", href: this.href, onClick: this.itemClick }, this.heading)), this.description &&
77
+ return (h(Host, { role: "listitem" }, h("article", { class: classes }, h("div", { class: "stzh-datamessagelist-item__content" }, h("div", { class: "stzh-datamessagelist-item__text" }, h("h3", { class: "stzh-datamessagelist-item__heading" }, h("a", { class: "stzh-datamessagelist-item__heading-link", href: this.href, onClick: this.itemClick }, this.unread &&
78
+ h("span", { class: "stzh-datamessagelist-item__vhidden" }, this.localization.unread, ","), this.heading)), this.description &&
78
79
  h("div", { class: "stzh-datamessagelist-item__description" }, h("stzh-clamp", { lines: 2, linesMedium: 1 }, this.description)), this._meta && this._meta.length > 0 &&
79
80
  h("div", { class: "stzh-datamessagelist-item__meta-wrapper" }, h("ul", { class: "stzh-datamessagelist-item__meta" }, this._meta.map((meta) => h("li", { class: "stzh-datamessagelist-item__meta-item" }, h("span", { class: "stzh-datamessagelist-item__meta-item-label" }, meta.label), h("span", { class: "stzh-datamessagelist-item__meta-item-value" }, meta.value)))))), this._loadingStatus &&
80
81
  h("stzh-status", { class: "stzh-datamessagelist-item__status", label: this._loadingStatus.label, percent: this._loadingStatus.percent, type: this._loadingStatus.type, withLoadingbar: true }), this._tags && this._tags.length > 0 &&
@@ -101,7 +102,7 @@ export class StzhDatamessagelistItem {
101
102
  "mutable": false,
102
103
  "complexType": {
103
104
  "original": "StzhDatamessagelistItemLocalizedText",
104
- "resolved": "StzhLocaleComponent & { actionsPopoverLabel: string; }",
105
+ "resolved": "StzhLocaleComponent & { actionsPopoverLabel: string; unread: string; }",
105
106
  "references": {
106
107
  "StzhDatamessagelistItemLocalizedText": {
107
108
  "location": "import",
@@ -30,6 +30,9 @@ export class StzhDetails {
30
30
  this.open = false;
31
31
  }
32
32
  async openWatcher(newValue) {
33
+ if (!this.triggerElement) {
34
+ return;
35
+ }
33
36
  if (this.triggerElement.firstElementChild) {
34
37
  const isStzh = isStzhElement(this.triggerElement.firstElementChild);
35
38
  this.triggerElement.firstElementChild
@@ -234,6 +234,7 @@
234
234
  -webkit-appearance: none;
235
235
  -moz-appearance: none;
236
236
  appearance: none;
237
+ font-family: inherit;
237
238
  border: none;
238
239
  background: none;
239
240
  padding: var(--stzh-space-xsmall);
@@ -123,7 +123,7 @@ export class StzhDialog {
123
123
  activeDialog = null;
124
124
  }
125
125
  async componentWillLoad() {
126
- this.headingId = `stzh-dialog-label-${dialogCounter}`;
126
+ this.id = `stzh-dialog-${dialogCounter}`;
127
127
  dialogCounter++;
128
128
  if (!this.localization) {
129
129
  this.localization = await fetchTranslations(this.element, "dialog");
@@ -166,8 +166,8 @@ export class StzhDialog {
166
166
  "stzh-dialog--has-heading": !!this.heading,
167
167
  "stzh-dialog--has-close-hidden": this.hideClose,
168
168
  [`stzh-dialog--size-${this.size}`]: !!this.size,
169
- } }, h("div", { class: "stzh-dialog__backdrop" }), h("div", { class: "stzh-dialog__content" }, h("div", { class: "stzh-dialog__dialog", ref: (el) => (this.dialogElement = el), tabindex: "-1", role: this.a11yRole, "aria-label": this.a11yLabel, "aria-labelledby": this.heading ? this.headingId : null, "aria-hidden": this.open ? "false" : "true", onClick: this.handleDialogClick }, this.heading &&
170
- h("stzh-heading", { id: this.headingId, class: "stzh-dialog__heading", level: "2", "with-border": true }, this.heading), h("div", { class: "stzh-dialog__dialog-content" }, h("slot", null)), h("div", { class: "stzh-dialog__actions" }, h("slot", { name: "actions" })), !this.hideClose &&
169
+ } }, h("div", { class: "stzh-dialog__backdrop" }), h("div", { class: "stzh-dialog__content" }, h("div", { class: "stzh-dialog__dialog", ref: (el) => (this.dialogElement = el), tabindex: "-1", role: this.a11yRole, "aria-label": this.a11yLabel, "aria-labelledby": this.heading ? `${this.id}-heading` : null, "aria-hidden": this.open ? "false" : "true", onClick: this.handleDialogClick }, this.heading &&
170
+ h("stzh-heading", { id: `${this.id}-heading`, class: "stzh-dialog__heading", level: "2", "with-border": true }, this.heading), h("div", { class: "stzh-dialog__dialog-content" }, h("slot", null)), h("div", { class: "stzh-dialog__actions" }, h("slot", { name: "actions" })), !this.hideClose &&
171
171
  h("button", { class: "stzh-dialog__close-button", onClick: this.handleCloseButtonClick, "aria-label": this.localization.close, type: "button" }, h("stzh-icon", { class: "stzh-dialog__close-icon", name: "close" })))))));
172
172
  }
173
173
  static get is() { return "stzh-dialog"; }
@@ -231,6 +231,7 @@ stzh-dropdown[disabled]:not([disabled=false])[variant=plain] {
231
231
  -webkit-appearance: none;
232
232
  -moz-appearance: none;
233
233
  appearance: none;
234
+ font-family: inherit;
234
235
  padding: 0;
235
236
  border: none;
236
237
  background-color: transparent;
@@ -441,6 +442,7 @@ stzh-dropdown[disabled]:not([disabled=false])[variant=plain] {
441
442
  -webkit-appearance: none;
442
443
  -moz-appearance: none;
443
444
  appearance: none;
445
+ font-family: inherit;
444
446
  text-decoration: none;
445
447
  outline: none;
446
448
  border: none;
@@ -587,6 +589,7 @@ stzh-dropdown[disabled]:not([disabled=false])[variant=plain] {
587
589
  -webkit-appearance: none;
588
590
  -moz-appearance: none;
589
591
  appearance: none;
592
+ font-family: inherit;
590
593
  border: 0.0625rem solid transparent;
591
594
  background-color: var(--stzh-color-grey5);
592
595
  transition: all var(--stzh-base-transition-animation-speed);
@@ -275,6 +275,7 @@
275
275
  -webkit-appearance: none;
276
276
  -moz-appearance: none;
277
277
  appearance: none;
278
+ font-family: inherit;
278
279
  border: none;
279
280
  background: none;
280
281
  padding: var(--stzh-space-xsmall);
@@ -55,7 +55,7 @@ const Popover = () => (
55
55
  const Logo = () => (
56
56
  <img
57
57
  src="media/logo/stzh-default.svg"
58
- alt="Logo Stadt Zürich"
58
+ alt="Logo City Zürich, go to homepage"
59
59
  ></img>
60
60
  );
61
61
 
@@ -10,7 +10,7 @@ export class StzhIcon {
10
10
  }
11
11
  render() {
12
12
  return (h(Host, null, this.name &&
13
- h("svg", { class: "stzh-icon", role: this.a11yTitle ? 'img' : 'presentation', focusable: this.a11yTitle ? 'true' : 'false', "aria-labelledby": this.a11yTitle ? `${this.iconId}-title` : null }, this.a11yTitle &&
13
+ h("svg", { class: "stzh-icon", role: this.a11yTitle ? 'img' : 'presentation', "aria-hidden": this.a11yTitle ? null : 'true', focusable: this.a11yTitle ? 'true' : 'false', "aria-labelledby": this.a11yTitle ? `${this.iconId}-title` : null }, this.a11yTitle &&
14
14
  h("title", { id: `${this.iconId}-title` }, this.a11yTitle), h("use", { href: `#stzh-icon-${this.name}` }))));
15
15
  }
16
16
  static get is() { return "stzh-icon"; }
@@ -184,6 +184,7 @@
184
184
  -webkit-appearance: none;
185
185
  -moz-appearance: none;
186
186
  appearance: none;
187
+ font-family: inherit;
187
188
  padding: 0;
188
189
  border: none;
189
190
  background-color: transparent;
@@ -139,6 +139,7 @@
139
139
  font-size: var(--stzh-font-curve-p1-default-font-size, var(--stzh-font-milli-font-size));
140
140
  line-height: var(--stzh-font-curve-p1-default-text-line-height, var(--stzh-font-milli-text-line-height));
141
141
  letter-spacing: var(--stzh-font-curve-p1-default-text-letter-spacing);
142
+ font-family: inherit;
142
143
  position: relative;
143
144
  display: flex;
144
145
  align-items: center;
@@ -125,6 +125,7 @@
125
125
  .stzh-menu-item {
126
126
  font-size: var(--stzh-font-micro-font-size);
127
127
  line-height: var(--stzh-font-micro-text-line-height);
128
+ font-family: inherit;
128
129
  display: flex;
129
130
  align-items: center;
130
131
  justify-content: stretch;
@@ -227,6 +227,7 @@
227
227
  -webkit-appearance: none;
228
228
  -moz-appearance: none;
229
229
  appearance: none;
230
+ font-family: inherit;
230
231
  border: none;
231
232
  background: none;
232
233
  padding: var(--stzh-space-xsmall);
@@ -73,7 +73,7 @@ export class StzhMicrositeTeaserlist {
73
73
  const classes = {
74
74
  "stzh-microsite-teaserlist": true,
75
75
  };
76
- return (h(Host, null, h("div", { class: classes }, h("stzh-chip-select", { class: "stzh-microsite-teaserlist__filter", label: this.localization.tagsLabel, data: this._tagChips, onStzhChange: this.handleChange }), h("stzh-card-list", { layout: "subpages" }, this.filteredSlicedItems.map((item) => h("stzh-card", { href: item.link, hideHeaderBorder: true }, item.image &&
76
+ return (h(Host, null, h("div", { class: classes }, h("stzh-chip-select", { class: "stzh-microsite-teaserlist__filter", label: this.localization.tagsLabel, data: this._tagChips, onStzhChange: this.handleChange }), h("stzh-card-list", { layout: "subpages" }, this.filteredSlicedItems.map((item) => h("stzh-card", { href: item.link, hideHeaderBorder: true, hideFooterBorder: true, withArrow: true }, item.image &&
77
77
  h("img", { slot: "image", src: item.image }), item.title &&
78
78
  h("stzh-clamp", { slot: "heading", lines: 2 }, item.title), item.description &&
79
79
  h("stzh-clamp", { slot: "content", lines: 3 }, item.description)))), this.showItems < this.filteredItems.length &&
@@ -92,7 +92,7 @@ export class StzhOlmap {
92
92
  </style>
93
93
 
94
94
  <div class="stzh-olmap__map stzh-olmap__map--print">
95
- <img class="stzh-olmap__print-image" src="${img}" alt="">
95
+ <img class="stzh-olmap__print-image" src="${img}">
96
96
  ${this.element.querySelector(".ol-scale-line.ol-unselectable").outerHTML}
97
97
  </div>
98
98
  `;
@@ -30,7 +30,7 @@ const Template = (args) => (
30
30
 
31
31
  const TemplateWithLogo = (args) => (
32
32
  <stzh-pagebottom {...args}>
33
- <img slot="logo" src="media/logo/stzh-company.svg" loading="lazy" alt="A company of the city of Zurich" />
33
+ <img slot="logo" src="media/logo/stzh-company.svg" loading="lazy" alt="A company of the city of Zurich, go to homepage" />
34
34
  </stzh-pagebottom>
35
35
  );
36
36
 
@@ -273,6 +273,7 @@
273
273
  -webkit-appearance: none;
274
274
  -moz-appearance: none;
275
275
  appearance: none;
276
+ font-family: inherit;
276
277
  border: none;
277
278
  background-color: transparent;
278
279
  padding: 0;
@@ -329,6 +330,7 @@
329
330
  -webkit-appearance: none;
330
331
  -moz-appearance: none;
331
332
  appearance: none;
333
+ font-family: inherit;
332
334
  border: none;
333
335
  background-color: transparent;
334
336
  padding: 0;
@@ -214,6 +214,9 @@ export class StzhPopover {
214
214
  }
215
215
  }
216
216
  async openWatcher(newValue) {
217
+ if (!this.dialogElement) {
218
+ return;
219
+ }
217
220
  if (newValue) {
218
221
  if (this.toggledByMethod) {
219
222
  this.stzhOpen.emit({
@@ -277,7 +280,7 @@ export class StzhPopover {
277
280
  }
278
281
  }
279
282
  async componentWillLoad() {
280
- this.labelId = `stzh-popover-label-${popoverCounter++}`;
283
+ this.id = `stzh-popover-${popoverCounter++}`;
281
284
  this.distanceWatcher(this.distance);
282
285
  if (!this.localization) {
283
286
  this.localization = await fetchTranslations(this.element, "popover");
@@ -304,6 +307,17 @@ export class StzhPopover {
304
307
  componentDidRender() {
305
308
  this.computePosition();
306
309
  this.open ? this.popoverShown() : this.popoverHidden();
310
+ const isStzh = isStzhElement(this.triggerElement.firstElementChild);
311
+ if ((isStzh && !this.triggerElement.firstElementChild.getAttribute("a11y-describedby"))
312
+ || this.triggerElement.firstElementChild.getAttribute("aria-describedby")) {
313
+ this.triggerElement.firstElementChild
314
+ .setAttribute(isStzh ? "a11y-describedby" : "aria-describedby", `${this.id}-trigger-description`);
315
+ }
316
+ if ((isStzh && !this.triggerElement.firstElementChild.getAttribute("a11y-label"))
317
+ || this.triggerElement.firstElementChild.getAttribute("aria-label")) {
318
+ this.triggerElement.firstElementChild
319
+ .setAttribute(isStzh ? "a11y-label" : "aria-label", this.label);
320
+ }
307
321
  }
308
322
  componentDidUpdate() {
309
323
  this.trap.updateContainerElements(this.dialogElement);
@@ -347,8 +361,8 @@ export class StzhPopover {
347
361
  [`stzh-popover--placement-${this.computedPlacement}`]: !!this.computedPlacement,
348
362
  [`stzh-popover--${this.variant}`]: !!this.variant
349
363
  };
350
- return (h(Host, null, h("div", { class: classes, onTouchStart: this.handleTouchStart, onTouchEnd: this.handleTouchEnd }, h("div", { ref: (el) => (this.triggerElement = el), class: "stzh-popover__trigger" }, h("slot", null)), h("div", { ref: (el) => (this.contentWrapperElement = el), class: "stzh-popover__content-wrapper" }, h("div", { class: "stzh-popover__backdrop" }), h("div", { ref: (el) => (this.contentElement = el), class: "stzh-popover__content" }, h("div", { ref: (el) => (this.dialogElement = el), class: "stzh-popover__dialog", role: "dialog", tabindex: "-1", "aria-modal": "true", "aria-labelledby": this.label ? this.labelId : null, "aria-hidden": this.open ? "false" : "true", onKeyDown: this.handleKeydown }, this.variant === "tooltip" &&
351
- h("div", { class: "stzh-popover__arrow", ref: (el) => (this.arrowElement = el), innerHTML: Arrow }), h("div", { class: "stzh-popover__content-inner" }, h("div", { class: "stzh-popover__content-slot" }, h("slot", { name: "content" }), h("div", { class: "stzh-popover__action-slot" }, h("slot", { name: "action" }))), h("div", { class: "stzh-popover__label-wrapper" }, h("h2", { id: this.labelId, class: "stzh-popover__label" }, this.label ? this.label : h("slot", { name: "label" })), h("button", { class: "stzh-popover__close", onClick: () => this.hide(), type: "button" }, h("stzh-icon", { name: "close", class: "stzh-popover__icon" }), h("span", { class: "stzh-popover__vhidden" }, this.localization.close))))))))));
364
+ return (h(Host, null, h("div", { class: classes, onTouchStart: this.handleTouchStart, onTouchEnd: this.handleTouchEnd }, h("div", { ref: (el) => (this.triggerElement = el), class: "stzh-popover__trigger" }, h("slot", null)), h("div", { class: "stzh-popover__vhidden", id: `${this.id}-trigger-description` }, this.localization.open), h("div", { ref: (el) => (this.contentWrapperElement = el), class: "stzh-popover__content-wrapper" }, h("div", { class: "stzh-popover__backdrop" }), h("div", { ref: (el) => (this.contentElement = el), class: "stzh-popover__content" }, h("div", { ref: (el) => (this.dialogElement = el), class: "stzh-popover__dialog", role: "dialog", tabindex: "-1", "aria-modal": "true", "aria-labelledby": this.label ? `${this.id}-label` : null, "aria-hidden": this.open ? "false" : "true", onKeyDown: this.handleKeydown }, this.variant === "tooltip" &&
365
+ h("div", { class: "stzh-popover__arrow", ref: (el) => (this.arrowElement = el), innerHTML: Arrow }), h("div", { class: "stzh-popover__content-inner" }, h("div", { class: "stzh-popover__content-slot" }, h("slot", { name: "content" }), h("div", { class: "stzh-popover__action-slot" }, h("slot", { name: "action" }))), h("div", { class: "stzh-popover__label-wrapper" }, h("h2", { id: `${this.id}-label`, class: "stzh-popover__label" }, this.label ? this.label : h("slot", { name: "label" })), h("button", { class: "stzh-popover__close", onClick: () => this.hide(), type: "button" }, h("stzh-icon", { name: "close", class: "stzh-popover__icon" }), h("span", { class: "stzh-popover__vhidden" }, this.localization.close))))))))));
352
366
  }
353
367
  static get is() { return "stzh-popover"; }
354
368
  static get encapsulation() { return "scoped"; }
@@ -499,7 +513,7 @@ export class StzhPopover {
499
513
  "mutable": false,
500
514
  "complexType": {
501
515
  "original": "StzhPopoverLocalizedText",
502
- "resolved": "StzhLocaleComponent & { close: string; }",
516
+ "resolved": "StzhLocaleComponent & { open: string; close: string; }",
503
517
  "references": {
504
518
  "StzhPopoverLocalizedText": {
505
519
  "location": "import",