[Support request] Aria Tags for “SVG-Icons”

Home Forums Support [Support request] Aria Tags for “SVG-Icons”

Home Forums Support Aria Tags for “SVG-Icons”

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #2449287
    Jenny

    Hello 🙂

    do anybody know: how I can give some readable aria-Tags to .svg´s [I used headlines without Text].
    At the Moment my pagereader just read the “headline-tag”.
    https://ibb.co/87RDsTw

    Can you help me? 🌻
    Thanks a lot, Jenny

    #2449644
    Fernando
    Customer Support

    Hi Jenny,

    Yes, we can help you.

    To clarify, which specific SVG images are you trying to add an aria- attribute to? The shared screenshot seems to not be working.

    #2449826
    Jenny

    Thank you Fernando :).
    I loaded the Screenshot up:
    https://ibb.co/S7Rx2d5

    Tanks for helping me 🌻
    Jenny

    #2449851
    Fernando
    Customer Support

    I see.

    If you have GB Pro, you can add a custom attribute through the Advanced section of the Block settings. Reference: https://docs.generateblocks.com/article/custom-attributes/

    Otherwise, you’ll need a custom code.

    #2450244
    Jenny

    Dear Fernando,

    I tried it out – and I also tried different ways
    to use this, but It seems: I make a mistake :).

    Can we make an working Example together?

    > What should I put in the Field: Data Attributes?
    aria-* ? Or
    Aria- and a word instead of the *?

    > What should I put in the Field:
    Value?

    The word the screenreader should read?

    Thanks a lot 🙂
    Jenny

    #2450476
    David
    Staff
    Customer Support

    Hi there,

    which svg icons are you wanting to add the aria too ?

    #2455824
    Jenny

    On this one for example
    https://ibb.co/gtfG9mb

    #2456048
    David
    Staff
    Customer Support

    You would need to edit the SVG codes to do that, BUT instead of adding an aria-label you can include a <title> element inside your SVG code.

    For example, this is the opening part of the SVG code:

    <svg xml:space="preserve" style="enable-background:new 0 0 1349.6 371.8;" viewBox="0 0 1349.6 371.8" y="0px" x="0px" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg" id="Ebene_1" version="1.1">

    Immediately after its closing > you can add:

    <title>your SVG title</title>

    This title will be read Assistive Technologies

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.