a11y.d.ts 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. export interface A11yMethods {}
  2. export interface A11yEvents {}
  3. export interface A11yOptions {
  4. /**
  5. * Enables A11y
  6. *
  7. * @default true
  8. */
  9. enabled?: boolean;
  10. /**
  11. * Message for screen readers for previous button
  12. *
  13. * @default 'Previous slide'
  14. */
  15. prevSlideMessage?: string;
  16. /**
  17. * Message for screen readers for next button
  18. *
  19. * @default 'Next slide'
  20. */
  21. nextSlideMessage?: string;
  22. /**
  23. * Message for screen readers for previous button when swiper is on first slide
  24. *
  25. * @default 'This is the first slide'
  26. */
  27. firstSlideMessage?: string;
  28. /**
  29. * Message for screen readers for next button when swiper is on last slide
  30. *
  31. * @default 'This is the last slide'
  32. */
  33. lastSlideMessage?: string;
  34. /**
  35. * Message for screen readers for single pagination bullet
  36. *
  37. * @default 'Go to slide {{index}}'
  38. */
  39. paginationBulletMessage?: string;
  40. /**
  41. * CSS class name of A11y notification
  42. *
  43. * @default 'swiper-notification'
  44. */
  45. notificationClass?: string;
  46. /**
  47. * Message for screen readers for outer swiper container
  48. *
  49. * @default null
  50. */
  51. containerMessage?: string | null;
  52. /**
  53. * Message for screen readers describing the role of outer swiper container
  54. *
  55. * @default null
  56. */
  57. containerRoleDescriptionMessage?: string | null;
  58. /**
  59. * Message for screen readers describing the role of slide element
  60. *
  61. * @default null
  62. */
  63. itemRoleDescriptionMessage?: string | null;
  64. /**
  65. * Message for screen readers describing the label of slide element
  66. *
  67. * @default '{{index}} / {{slidesLength}}'
  68. */
  69. slideLabelMessage?: string;
  70. /**
  71. * Value of swiper slide `role` attribute
  72. *
  73. * @default 'group'
  74. */
  75. slideRole?: string;
  76. }