-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs: storybook upgrade & renovation #506
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great stuff @KaiVandivier, thanks for putting this all together.
Some suggestions:
1. Page titles
I think it might be useful to prepend the page titles with ui –
, as the DHIS2 logo favicon is used in other situations too, so having the ui –
prefix would further clarify what DHIS2 domain this is.
In that case, page titles would look like: ui – actions/button
, ui – data display/stacked table
.
2. Change "Stories" page heading
Most component pages contain the heading "Stories". This is an internal storybook-specific term and doesn't have any meaning to the components. If this is possible to change, I'd suggest "Variants" instead, which more accurately describes the content.
3. Adjust section titles
I think the sidebar sections could be more descriptive. I suggest:
- Adding a heading for the "...for readers" and "...for maintainers" pages, with the title "About this documentation"
- Change the "Tips for readers" page title to just "For readers"
- Change the "Tips for maintainers" page title to just "For maintainers"
- Change 'UI docs" heading to "Using UI"
4. Custom styles
Am I correct in thinking the only styles we can adjust are those exposed in theme.js
? There are some other changes I'd like to make (document link color contrast is not accessible, sidebar headers are difficult to read), but there doesn't seem to be any options available. Any workaround for this?
Thanks for the great suggestions Joe!
|
Sorry, I didn't see this before.. Could you elaborate what what is going wrong? I just took a brief look at the first single select story's docs tab and it seems to work fine in the iframe? |
@Mohammer5 In the SingleSelect, iframe works around the issue; try looking at SingleSelectField demos on the docs page (which don't use an iframe) - the first demo will usually work, but clicking on one of the later demos opens up the dropdown somewhere else on the page, and you will have to scroll up to see it |
Yeah, I think
Ok, interesting! I think it's best to keep the scope of this PR as narrow as possible, so I can address the visual style changes I have in a future PR. Perhaps you could include the escape hatch functionality in this PR with a blank stylesheet? Then I can add to it in future. |
Will do! 👍 |
Updates:
|
The document title might be solved by writing an addon, but that might be best done in another pull request 🤔 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On the whole, I think this is an improvement that is worthy to go in. Parts that need to change can be dealt with in smaller PRs.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for making the requested changes. This looks good! I'll be making some separate PR's to deal with minor styling and aesthetics that I noted.
🎉 great stuff @KaiVandivier ! |
🎉 This PR is included in version 6.5.2 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
This is a project to take advantage of new Storybook features to renovate the UI library documentation and make it a more useful tool for readers.
Relates to this proposal at the 'notes' repository