Skip to content

refactor: divider documentation#2978

Merged
vprothais merged 5 commits into
ouds/mainfrom
2977-ouds-refactor-divider-link-documentation-following-design-review
Apr 29, 2025
Merged

refactor: divider documentation#2978
vprothais merged 5 commits into
ouds/mainfrom
2977-ouds-refactor-divider-link-documentation-following-design-review

Conversation

@nilloq
Copy link
Copy Markdown
Member

@nilloq nilloq commented Apr 15, 2025

Related issues

#2977

Description

Update Divider documenation

Motivation & Context

Following design review in order to be more structured and comprehensive

Types of change

  • Refactoring (non-breaking change)

Live previews

Checklist

Contribution

Accessibility

  • My change follows accessibility good practices; I have at least run axe

Design

  • My change respects the design guidelines defined in Orange Design System
  • My change is compatible with a responsive display

Development

  • My change follows the developer guide
  • I have added JavaScript unit tests to cover my changes
  • I have added SCSS unit tests to cover my changes

Documentation

  • My change introduces changes to the documentation and/or I have updated the documentation accordingly

@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 15, 2025

Deploy Preview for boosted ready!

Name Link
🔨 Latest commit 522ff26
🔍 Latest deploy log https://app.netlify.com/sites/boosted/deploys/680f7e3cf754f80008843800
😎 Deploy Preview https://deploy-preview-2978--boosted.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Copy Markdown
Member

@louismaximepiton louismaximepiton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks way better, just some questions because I can't remember the meetng we had about it

Comment thread site/content/docs/0.4/content/reboot.md Outdated
description: Use the horizontal or vertical rule helpers to create dividers. A divider can be used to visually structure an interface by clearly separating content sections.
group: helpers
aliases:
- "/docs/helpers/divider/"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we add ? for links compatibility

Suggested change
- "/docs/helpers/divider/"
- "/docs/helpers/divider/"
- "/docs/helpers/dividers/"

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/docs/helpers/dividers only exist since 0.4, I don't think anyone has bookmarked it yet. ;-)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If a page has already been published, the file exists in the gh-pages branch. If we don't keep this alias for new versions, Hugo will not generate a new page with a redirection, and when we'll update the doc we will not overwrite the existing file. Therefore we will have the old page available on /dividers/ and the new one on /divider/. I would keep the alias, even if you're not wrong, nobody should have bookmarked the page.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok noted. I add the link for compatibility

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We've lost the colored bg part, I can't remember if it was asked or not 🤔

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You have some examples in the color section, isn't it enough?

Comment thread site/content/docs/0.4/helpers/divider.md Outdated
Comment thread site/content/docs/0.4/helpers/divider.md
Comment thread site/content/docs/0.4/helpers/divider.md
@nilloq nilloq requested a review from louismaximepiton April 17, 2025 07:37
@boosted-bot boosted-bot moved this from Need Dev Review to Need Lead Dev Review in 🟣 [Orange-Boosted-Bootstrap] PRs Board Apr 28, 2025
description: Use the horizontal or vertical rule helpers to create dividers. A divider can be used to visually structure an interface by clearly separating content sections.
group: helpers
aliases:
- "/docs/helpers/divider/"
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If a page has already been published, the file exists in the gh-pages branch. If we don't keep this alias for new versions, Hugo will not generate a new page with a redirection, and when we'll update the doc we will not overwrite the existing file. Therefore we will have the old page available on /dividers/ and the new one on /divider/. I would keep the alias, even if you're not wrong, nobody should have bookmarked the page.


## Horizontal rules

Horizontal rules should use the `<hr>` tag, when the separator has semantic meaning (i.e., when it represents a topic change or a significant transition in the content). If the divider is purely decorative, prefer using a border CSS property on a `<div>` or our [border utilities]({{< docsref "/utilities/borders" >}}), or even ensure to hide it from assistive technologies (e.g., `aria-hidden="true"`).
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we should be less specific and say "on an element" or "on an HTML element" rather than "on a div" ?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok for me, I updated the doc

{{< example class="d-flex flex-column gap-1" >}}
<div><hr class="border-muted"></div>
<div><hr class="border-emphasized"></div>
<div><hr class="border-brand-primary"></div>
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we could remove the <div> element around the <hr> on these 3 examples. It is not needed, and it will make it easier to see the hr element.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok done

@boosted-bot boosted-bot moved this from Need Lead Dev Review to Dev Review In Progress in 🟣 [Orange-Boosted-Bootstrap] PRs Board Apr 28, 2025
@nilloq nilloq force-pushed the 2977-ouds-refactor-divider-link-documentation-following-design-review branch from e3bb682 to 522ff26 Compare April 28, 2025 13:10
@nilloq nilloq requested a review from vprothais April 28, 2025 13:22
@vprothais vprothais self-assigned this Apr 29, 2025
@boosted-bot boosted-bot moved this from Dev Review In Progress to Need Lead Dev Review in 🟣 [Orange-Boosted-Bootstrap] PRs Board Apr 29, 2025
@vprothais vprothais merged commit 761b9a1 into ouds/main Apr 29, 2025
15 checks passed
@vprothais vprothais deleted the 2977-ouds-refactor-divider-link-documentation-following-design-review branch April 29, 2025 08:48
@github-project-automation github-project-automation Bot moved this from Need Lead Dev Review to Done in 🟣 [Orange-Boosted-Bootstrap] PRs Board Apr 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

4 participants