Skip to content
This repository has been archived by the owner on Mar 26, 2019. It is now read-only.

Choice Field Group - docs indicate to nest div directly beneath ul. Is there supposed to be li in between? #282

Closed
jimbarrett33 opened this issue Jan 31, 2017 · 2 comments

Comments

@jimbarrett33
Copy link
Contributor

I tried it but there doesn't seem to be a style to remove the rendered bullets from the li

Thanks.

@Jahnp
Copy link
Collaborator

Jahnp commented Feb 3, 2017

Hi @jbarr33, just to be clear, are you referring to the documentation on this page for the ChoiceFieldGroup component? Looking there, I see this markup:

<div class="ms-ChoiceFieldGroup" id="choicefieldgroup" role="radiogroup">
  <div class="ms-ChoiceFieldGroup-title">
    <label class="ms-Label is-required">Unselected</label>
  </div>
  <ul class="ms-ChoiceFieldGroup-list">
    <div class="ms-RadioButton">
     ...

Which is indeed not valid markup; semantically only li elements should be direct children of ul elements. I'm not sure if this was a bug/oversight when creating the sample code or if the CSS for ChoiceFieldGroup was originally structured that way, but either way this should be investigated & fixed. The solution could either be turning the ms-RadioButton element into an li (less likely) or instead wrapping in an li with a class like ms-ChoiceFieldGroup-listItem`.

We'll try to look into this soon, but feel free to do the same--if you happen to resolve this, feel free to open a PR fixing the documentation. Sorry for the hassle!

@leddie24
Copy link
Collaborator

leddie24 commented Feb 8, 2017

Fixed in #284

@leddie24 leddie24 closed this as completed Feb 8, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants