-
Notifications
You must be signed in to change notification settings - Fork 113
ChoiceFieldGroup: use <li> instead of <div>, add list-style: none to ms-ChoiceGroup-list class #284
ChoiceFieldGroup: use <li> instead of <div>, add list-style: none to ms-ChoiceGroup-list class #284
Conversation
…om `div` to `li` Change the `<ul>` child to be `<li>` from `<div>` to be compliant with HTML spec. Add `list-style: none` to `ms-ChoiceGroup-list` class so the default `li` bullets won't show up
Hi @jbarr33, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution! TTYL, MSBOT; |
To be clear, this fixes the documentation on GitHub but not the Fabric JS website, right? We should probably be removing the GitHub documentation entirely now that we have the website online. |
I thought the website was generated from the local documentation?
|
@mikewheaton Not sure I understand the about the Fabric JS website or not but if people follow updated documentation which uses |
@Jahnp: The GitHub documentation was added as a temporary solution while we were trying to get the website built and deployed. It has images of components and code samples but, as far as I know, it isn't related to the actual documentation site in any way. @leddie24 can confirm. |
Hi, I am closing and re-opening this PR to bump the CLA bot. Sorry for the inconvenience! |
Hi @jbarr33, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution! TTYL, MSBOT; |
@mikewheaton ah, I didn't look closely enough at the actual files affected in this PR. You're right, this PR affects the But, we should also fix the code on the website. I'm honestly not familiar enough with where the below code sample is coming from in terms of the JS repo: @leddie24 @battletoilet can you please take a look and let us know if the changes in this PR will end up on the website? These changes are just to the .md files. |
hey @Jahnp, the HTML code samples are built from the .hbs files inside of ./src/components/ComponentName/ComponentName.hbs. ChoiceFieldGroup is generating the options inside of ms-ChoiceFieldGroup-list as RadioButton components. ChoiceFieldGroup
RadioButton
From my understanding, I don't think RadioButton is being used in any other component besides ChoiceFieldGroup, so we can just edit the .hbs template for that component to show LIs instead of divs to fix this issue. |
Made a quick PR for this, it's in #285 |
Thanks all! |
Change the
<ul>
child to be<li>
from<div>
to be compliant withHTML spec. Add
list-style: none
toms-ChoiceGroup-list
class so thedefault
li
bullets won't show up