Office UI Fabric ReactJS Dropdown Accessibility issue










0















I am using Office UI Fabric Dropdown in React.js. I am testing the application for accessibility issues using Keros for Web.



It is showing this issue for dropdowns:



aria-valid-attr-value: ARIA attributes must conform to valid values
Fix the following: Invalid ARIA attribute value: aria-labelledby="usercountryRegion-label"
Snippet: <div data-is-focusable="true" id="usercountryRegion" tabindex="0" aria-expanded="false" role="listbox" aria-labelledby="usercountryRegion-label" aria-describedby="usercountryRegion-option" aria-activedescendant="usercountryRegion-option" name="country" class="ms-Dropdown root_aecb6435">


I searched for some answer and all I got is "Ensure the value inside each attribute is spelled correctly and corresponds to a valid value.", but I could not find a solution to this.










share|improve this question




























    0















    I am using Office UI Fabric Dropdown in React.js. I am testing the application for accessibility issues using Keros for Web.



    It is showing this issue for dropdowns:



    aria-valid-attr-value: ARIA attributes must conform to valid values
    Fix the following: Invalid ARIA attribute value: aria-labelledby="usercountryRegion-label"
    Snippet: <div data-is-focusable="true" id="usercountryRegion" tabindex="0" aria-expanded="false" role="listbox" aria-labelledby="usercountryRegion-label" aria-describedby="usercountryRegion-option" aria-activedescendant="usercountryRegion-option" name="country" class="ms-Dropdown root_aecb6435">


    I searched for some answer and all I got is "Ensure the value inside each attribute is spelled correctly and corresponds to a valid value.", but I could not find a solution to this.










    share|improve this question


























      0












      0








      0








      I am using Office UI Fabric Dropdown in React.js. I am testing the application for accessibility issues using Keros for Web.



      It is showing this issue for dropdowns:



      aria-valid-attr-value: ARIA attributes must conform to valid values
      Fix the following: Invalid ARIA attribute value: aria-labelledby="usercountryRegion-label"
      Snippet: <div data-is-focusable="true" id="usercountryRegion" tabindex="0" aria-expanded="false" role="listbox" aria-labelledby="usercountryRegion-label" aria-describedby="usercountryRegion-option" aria-activedescendant="usercountryRegion-option" name="country" class="ms-Dropdown root_aecb6435">


      I searched for some answer and all I got is "Ensure the value inside each attribute is spelled correctly and corresponds to a valid value.", but I could not find a solution to this.










      share|improve this question
















      I am using Office UI Fabric Dropdown in React.js. I am testing the application for accessibility issues using Keros for Web.



      It is showing this issue for dropdowns:



      aria-valid-attr-value: ARIA attributes must conform to valid values
      Fix the following: Invalid ARIA attribute value: aria-labelledby="usercountryRegion-label"
      Snippet: <div data-is-focusable="true" id="usercountryRegion" tabindex="0" aria-expanded="false" role="listbox" aria-labelledby="usercountryRegion-label" aria-describedby="usercountryRegion-option" aria-activedescendant="usercountryRegion-option" name="country" class="ms-Dropdown root_aecb6435">


      I searched for some answer and all I got is "Ensure the value inside each attribute is spelled correctly and corresponds to a valid value.", but I could not find a solution to this.







      accessibility dropdown office-ui-fabric






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 13 '18 at 8:01









      Armali

      7,020936100




      7,020936100










      asked Nov 13 '18 at 4:38









      TanushreeTanushree

      11




      11






















          1 Answer
          1






          active

          oldest

          votes


















          0














          Search your code for "usercountryRegion-label". The value of aria-labelledby must be the ID of another object. Make sure the ID attribute (not the NAME attribute) is "usercountryRegion-label" of the element you're pointing to.





          Good:



          <div id="usercountryRegion-label">Africa</div>


          Bad:



          <div name="usercountryRegion-label">Africa</div>





          share|improve this answer























          • We are not able to override the aria-labelledby attribute since it is coming from office fabric drop down component,if you have any other approach that will be helpful for us.

            – Tanushree
            Dec 4 '18 at 11:14











          • I'm not asking you to change the aria-labelledby. I'm saying whatever value the aria-labelledby is showing, it needs to be a valid ID of another object. If the object it points to only has a NAME attribute and not an ID attribute, that would cause the error.

            – slugolicious
            Dec 4 '18 at 23:45










          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53273914%2foffice-ui-fabric-reactjs-dropdown-accessibility-issue%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0














          Search your code for "usercountryRegion-label". The value of aria-labelledby must be the ID of another object. Make sure the ID attribute (not the NAME attribute) is "usercountryRegion-label" of the element you're pointing to.





          Good:



          <div id="usercountryRegion-label">Africa</div>


          Bad:



          <div name="usercountryRegion-label">Africa</div>





          share|improve this answer























          • We are not able to override the aria-labelledby attribute since it is coming from office fabric drop down component,if you have any other approach that will be helpful for us.

            – Tanushree
            Dec 4 '18 at 11:14











          • I'm not asking you to change the aria-labelledby. I'm saying whatever value the aria-labelledby is showing, it needs to be a valid ID of another object. If the object it points to only has a NAME attribute and not an ID attribute, that would cause the error.

            – slugolicious
            Dec 4 '18 at 23:45















          0














          Search your code for "usercountryRegion-label". The value of aria-labelledby must be the ID of another object. Make sure the ID attribute (not the NAME attribute) is "usercountryRegion-label" of the element you're pointing to.





          Good:



          <div id="usercountryRegion-label">Africa</div>


          Bad:



          <div name="usercountryRegion-label">Africa</div>





          share|improve this answer























          • We are not able to override the aria-labelledby attribute since it is coming from office fabric drop down component,if you have any other approach that will be helpful for us.

            – Tanushree
            Dec 4 '18 at 11:14











          • I'm not asking you to change the aria-labelledby. I'm saying whatever value the aria-labelledby is showing, it needs to be a valid ID of another object. If the object it points to only has a NAME attribute and not an ID attribute, that would cause the error.

            – slugolicious
            Dec 4 '18 at 23:45













          0












          0








          0







          Search your code for "usercountryRegion-label". The value of aria-labelledby must be the ID of another object. Make sure the ID attribute (not the NAME attribute) is "usercountryRegion-label" of the element you're pointing to.





          Good:



          <div id="usercountryRegion-label">Africa</div>


          Bad:



          <div name="usercountryRegion-label">Africa</div>





          share|improve this answer













          Search your code for "usercountryRegion-label". The value of aria-labelledby must be the ID of another object. Make sure the ID attribute (not the NAME attribute) is "usercountryRegion-label" of the element you're pointing to.





          Good:



          <div id="usercountryRegion-label">Africa</div>


          Bad:



          <div name="usercountryRegion-label">Africa</div>






          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 15 '18 at 9:22









          slugoliciousslugolicious

          4,43811318




          4,43811318












          • We are not able to override the aria-labelledby attribute since it is coming from office fabric drop down component,if you have any other approach that will be helpful for us.

            – Tanushree
            Dec 4 '18 at 11:14











          • I'm not asking you to change the aria-labelledby. I'm saying whatever value the aria-labelledby is showing, it needs to be a valid ID of another object. If the object it points to only has a NAME attribute and not an ID attribute, that would cause the error.

            – slugolicious
            Dec 4 '18 at 23:45

















          • We are not able to override the aria-labelledby attribute since it is coming from office fabric drop down component,if you have any other approach that will be helpful for us.

            – Tanushree
            Dec 4 '18 at 11:14











          • I'm not asking you to change the aria-labelledby. I'm saying whatever value the aria-labelledby is showing, it needs to be a valid ID of another object. If the object it points to only has a NAME attribute and not an ID attribute, that would cause the error.

            – slugolicious
            Dec 4 '18 at 23:45
















          We are not able to override the aria-labelledby attribute since it is coming from office fabric drop down component,if you have any other approach that will be helpful for us.

          – Tanushree
          Dec 4 '18 at 11:14





          We are not able to override the aria-labelledby attribute since it is coming from office fabric drop down component,if you have any other approach that will be helpful for us.

          – Tanushree
          Dec 4 '18 at 11:14













          I'm not asking you to change the aria-labelledby. I'm saying whatever value the aria-labelledby is showing, it needs to be a valid ID of another object. If the object it points to only has a NAME attribute and not an ID attribute, that would cause the error.

          – slugolicious
          Dec 4 '18 at 23:45





          I'm not asking you to change the aria-labelledby. I'm saying whatever value the aria-labelledby is showing, it needs to be a valid ID of another object. If the object it points to only has a NAME attribute and not an ID attribute, that would cause the error.

          – slugolicious
          Dec 4 '18 at 23:45

















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53273914%2foffice-ui-fabric-reactjs-dropdown-accessibility-issue%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          這個網誌中的熱門文章

          Barbados

          How to read a connectionString WITH PROVIDER in .NET Core?

          Node.js Script on GitHub Pages or Amazon S3