Skip to content
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: add design callouts in all the documentation when incompatibility with ODS #1614

Open
wants to merge 71 commits into
base: main
Choose a base branch
from

Conversation

isabellechanclou
Copy link
Member

@isabellechanclou isabellechanclou commented Nov 14, 2022

Related issues

Closes #1199
Closes #1118
Closes #1117

Description

Everywhere needed in Boosted Docs, a callout message has been added.

Motivation & Context

Callout messages added to warn Boosted users that such component or component variant should not be used because incompatible with the orange design system specifications.

Types of change

  • New feature (non-breaking change which adds functionality)

Live previews

Checklist

  • I have read the contributing guidelines
  • My code follows the code style of the project (using npm run lint)
  • My change introduces changes to the documentation
  • My change introduces changes to the migration guide
  • I have updated the documentation accordingly
  • I have added tests to cover my changes
  • All new and existing tests passed

Signed-off-by: Isabelle Chanclou <isabelle.chanclou@orange.com>
…e of the design callouts on Getting started Introduction page

Signed-off-by: Isabelle Chanclou <isabelle.chanclou@orange.com>
Signed-off-by: Isabelle Chanclou <isabelle.chanclou@orange.com>
Signed-off-by: Isabelle Chanclou <isabelle.chanclou@orange.com>
Signed-off-by: Isabelle Chanclou <isabelle.chanclou@orange.com>
Signed-off-by: Isabelle Chanclou <isabelle.chanclou@orange.com>
Signed-off-by: Isabelle Chanclou <isabelle.chanclou@orange.com>
@netlify
Copy link

netlify bot commented Nov 14, 2022

Deploy Preview for boosted ready!

Name Link
🔨 Latest commit 4fcd51d
🔍 Latest deploy log https://app.netlify.com/sites/boosted/deploys/659bcea1f6fbd000083c8162
😎 Deploy Preview https://deploy-preview-1614--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.

Signed-off-by: Isabelle Chanclou <isabelle.chanclou@orange.com>
@julien-deramond julien-deramond added feature docs Improvements or additions to documentation v5 labels Nov 14, 2022
@julien-deramond

This comment was marked as resolved.

Signed-off-by: Isabelle Chanclou <isabelle.chanclou@orange.com>
Signed-off-by: Isabelle Chanclou <isabelle.chanclou@orange.com>
@julien-deramond julien-deramond changed the title docs: add design callouts in all the documentation whent incompabilily with ODS docs: add design callouts in all the documentation when incompatibility with ODS Nov 15, 2022
Copy link
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.

Here are some global comments, feel free to debate about these.

I'd rather use should not instead of can not almost everywhere in the callouts.
The way they are implemented yet make me feel that a callout is for the entire subpart.
Wondering if we should redirect to a usable Boosted variant on each callout ?
Maybe be more descriptive on some components.
Maybe we should on some examples explain why we shouldn't use this particular example but the concepts behind are still usable ?
We don't have specs for placeholders but is it fine to use them ?
Be brave for the migration guide change !

site/content/docs/5.2/components/badge.md Outdated Show resolved Hide resolved
site/content/docs/5.2/components/badge.md Outdated Show resolved Hide resolved
site/content/docs/5.2/components/button-group.md Outdated Show resolved Hide resolved
site/content/docs/5.2/components/button-group.md Outdated Show resolved Hide resolved
site/content/docs/5.2/components/button-group.md Outdated Show resolved Hide resolved
site/content/docs/5.2/components/modal.md Outdated Show resolved Hide resolved
site/content/docs/5.2/components/modal.md Outdated Show resolved Hide resolved
site/content/docs/5.2/components/carousel.md Outdated Show resolved Hide resolved
site/content/docs/5.2/components/list-group.md Outdated Show resolved Hide resolved
@@ -253,6 +258,11 @@ Take that same HTML, but use `.nav-pills` instead:

Force your `.nav`'s contents to extend the full available width one of two modifier classes. To proportionately fill all available space with your `.nav-item`s, use `.nav-fill`. Notice that all horizontal space is occupied, but not every nav item has the same width.

<!-- Boosted mod : design callout -->
{{< ods-incompatibility-alert >}}
Copy link
Member

Choose a reason for hiding this comment

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

Feel like the concepts behind will be lost. Same below.

Copy link
Member Author

Choose a reason for hiding this comment

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

Once again, the problem is not the technical part, but the look of the component used to illustrate this technical part...

Copy link
Member

Choose a reason for hiding this comment

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

We should mention it or maybe change the examples look but I'm not sure this is possible...

Copy link
Member Author

Choose a reason for hiding this comment

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

⁉️ TODO: Review this whole page with the designers.

Copy link
Member

Choose a reason for hiding this comment

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

Linked to my previous comment. If this is only a design reason but that the feature can be used it should be clearly explained.

Copy link
Member Author

Choose a reason for hiding this comment

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

OK. From the info I have so far, the problem is the fact that the design should be buttons and not links.
TBH, it would be good to re-clarify the reasons of not using with the design.
Meanwhile, what about:

These link variants, which are just examples illustrating the use of the fill and justify utilities, should not be used because they do not respect the Orange Design System specifications. Indeed, they should be button components.

With more details, it might be useful to add a "refer to our Boosted ..." and/or "refer to the xx guidelines the ODS website"

Copy link
Member

Choose a reason for hiding this comment

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

We use links on the whole page here even for https://deploy-preview-1614--boosted.netlify.app/docs/5.2/components/navs-tabs/#nested-tabs. Imo, it's not the main issue here since it's a design issue + no need to redirect to tabs light imo

Copy link
Member Author

Choose a reason for hiding this comment

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

Let me try to clarify:

  • Here, we have nav with links <a> that have the look of buttons <button>. Here, it's not possible to have that. If we want to have components that have the look of buttons, then in the code they should be <button> html tags.
  • Now besides the combination "html tag/expected design", the only look that is ok for such components is the one of the tabs light.

Would this version be more satisfying ?
These link variants, which are just examples illustrating the use of the fill and justify utilities, should not be used because they do not respect the Orange Design System specifications. Indeed, nav tabs and html tags should not look like buttons.
Instead, please consider using our Boosted Tabs light variant. You can also refer to Navigation guidelines on the Orange Design System website.

Copy link
Member

Choose a reason for hiding this comment

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

Here, we have a nav with links that have the look of buttons . Here, it's not possible to have that. If we want to have components that have the look of buttons, then in the code they should be html tags.

I strongly disagree with the fact that <a> shouldn't look like buttons. Since many call to action are presented as buttons but are truly links. I think it strongly depends on the context and the associated action. IMO, the actual behavior is fine.

Otherwise, many many and many designs will have to change as well.

IMO, if this is accepted by design:
image

instead of:
image

We might consider using .nav-underline instead of .nav-pill to present the remaining doc. We should keep a callout only if the design is against a specific feature. Any thoughts @julien-deramond ?

Copy link
Member

Choose a reason for hiding this comment

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

Just done it.

@louismaximepiton louismaximepiton modified the milestone: m Nov 15, 2022
site/content/docs/5.2/customize/color.md Outdated Show resolved Hide resolved
site/content/docs/5.2/forms/form-control.md Outdated Show resolved Hide resolved
site/content/docs/5.2/forms/input-group.md Outdated Show resolved Hide resolved
site/content/docs/5.2/forms/input-group.md Outdated Show resolved Hide resolved
site/content/docs/5.2/forms/input-group.md Outdated Show resolved Hide resolved
site/content/docs/5.2/forms/validation.md Outdated Show resolved Hide resolved
site/content/docs/5.2/getting-started/introduction.md Outdated Show resolved Hide resolved
site/content/docs/5.2/getting-started/introduction.md Outdated Show resolved Hide resolved
site/content/docs/5.2/getting-started/introduction.md Outdated Show resolved Hide resolved
site/content/docs/5.2/getting-started/introduction.md Outdated Show resolved Hide resolved
@hannahiss hannahiss self-requested a review November 18, 2022 16:00
Copy link
Member

@hannahiss hannahiss left a comment

Choose a reason for hiding this comment

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

Reviewed up to customize-colors included

site/content/docs/5.2/components/badge.md Outdated Show resolved Hide resolved
site/content/docs/5.2/components/badge.md Outdated Show resolved Hide resolved
site/content/docs/5.2/components/badge.md Outdated Show resolved Hide resolved
site/content/docs/5.2/components/button-group.md Outdated Show resolved Hide resolved
site/content/docs/5.2/components/button-group.md Outdated Show resolved Hide resolved
site/content/docs/5.2/components/progress.md Outdated Show resolved Hide resolved
site/content/docs/5.2/components/tooltips.md Outdated Show resolved Hide resolved
site/content/docs/5.2/content/reboot.md Outdated Show resolved Hide resolved
site/content/docs/5.2/customize/color.md Outdated Show resolved Hide resolved
site/content/docs/5.2/customize/color.md Outdated Show resolved Hide resolved
@louismaximepiton
Copy link
Member

louismaximepiton commented Nov 23, 2022

Some callouts are missing somehow. Haven't checked everything but the displayed cards are fine unless we warn about the usage of:

  • list-groups
  • kitchen sinks
  • header and footer (will maybe land in the DSM) apart the last example
  • text alignment
  • navigation
  • image on bottom
  • image overlays
  • card styles

site/content/docs/5.2/forms/form-control.md Outdated Show resolved Hide resolved
site/content/docs/5.2/forms/input-group.md Outdated Show resolved Hide resolved
@@ -285,6 +320,13 @@ Input groups include support for custom selects and custom file inputs. Browser

### Custom file input

<!-- Boosted mod : design callout -->
{{< ods-incompatibility-alert >}}
These form variants can not be used because they do not respect the Orange Design System specifications.
Copy link
Member

Choose a reason for hiding this comment

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

yes, but if you can't glue the buttons together with the field you'll have something like this :
image
(example from va11ydette)
Is it better ?

site/content/docs/5.2/forms/layout.md Outdated Show resolved Hide resolved
site/content/docs/5.2/forms/layout.md Outdated Show resolved Hide resolved
site/content/docs/5.2/forms/layout.md Outdated Show resolved Hide resolved
site/content/docs/5.2/forms/layout.md Outdated Show resolved Hide resolved
site/content/docs/5.2/forms/layout.md Outdated Show resolved Hide resolved
site/content/docs/5.2/forms/validation.md Outdated Show resolved Hide resolved
site/content/docs/5.2/getting-started/introduction.md Outdated Show resolved Hide resolved
site/content/docs/5.2/getting-started/introduction.md Outdated Show resolved Hide resolved
site/content/docs/5.2/getting-started/introduction.md Outdated Show resolved Hide resolved
site/content/docs/5.2/getting-started/introduction.md Outdated Show resolved Hide resolved
Signed-off-by: Isabelle Chanclou <isabelle.chanclou@orange.com>
Signed-off-by: Isabelle Chanclou <isabelle.chanclou@orange.com>
@sonarcloud
Copy link

sonarcloud bot commented Feb 2, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

Copy link
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.

Mostly asking if conversations are resolved or if any updates was brought on these since last talk.

site/content/docs/5.2/components/button-group.md Outdated Show resolved Hide resolved
site/content/docs/5.2/components/collapse.md Outdated Show resolved Hide resolved
site/content/docs/5.2/components/dropdowns.md Outdated Show resolved Hide resolved
site/content/docs/5.2/components/list-group.md Outdated Show resolved Hide resolved
site/content/docs/5.2/components/navs-tabs.md Outdated Show resolved Hide resolved
site/content/docs/5.2/components/placeholders.md Outdated Show resolved Hide resolved
site/content/docs/5.2/components/tags.md Outdated Show resolved Hide resolved
site/content/docs/5.2/forms/form-control.md Outdated Show resolved Hide resolved
site/content/docs/5.2/forms/layout.md Outdated Show resolved Hide resolved
site/content/docs/5.2/forms/select.md Outdated Show resolved Hide resolved
isabellechanclou and others added 5 commits March 10, 2023 17:30
Co-authored-by: Louis-Maxime Piton <louismaxime.piton@orange.com>
Co-authored-by: Louis-Maxime Piton <louismaxime.piton@orange.com>
Signed-off-by: Isabelle Chanclou <isabelle.chanclou@orange.com>
Signed-off-by: Isabelle Chanclou <isabelle.chanclou@orange.com>
…ocs' into main-ic-add-design-callouts-in-docs

Signed-off-by: Isabelle Chanclou <isabelle.chanclou@orange.com>
site/content/docs/5.3/components/button-group.md Outdated Show resolved Hide resolved
site/content/docs/5.3/components/list-group.md Outdated Show resolved Hide resolved
site/content/docs/5.3/components/navs-tabs.md Outdated Show resolved Hide resolved
@@ -253,6 +258,11 @@ Take that same HTML, but use `.nav-pills` instead:

Force your `.nav`'s contents to extend the full available width one of two modifier classes. To proportionately fill all available space with your `.nav-item`s, use `.nav-fill`. Notice that all horizontal space is occupied, but not every nav item has the same width.

<!-- Boosted mod : design callout -->
{{< ods-incompatibility-alert >}}
Copy link
Member

Choose a reason for hiding this comment

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

Here, we have a nav with links that have the look of buttons . Here, it's not possible to have that. If we want to have components that have the look of buttons, then in the code they should be html tags.

I strongly disagree with the fact that <a> shouldn't look like buttons. Since many call to action are presented as buttons but are truly links. I think it strongly depends on the context and the associated action. IMO, the actual behavior is fine.

Otherwise, many many and many designs will have to change as well.

IMO, if this is accepted by design:
image

instead of:
image

We might consider using .nav-underline instead of .nav-pill to present the remaining doc. We should keep a callout only if the design is against a specific feature. Any thoughts @julien-deramond ?

Signed-off-by: Isabelle Chanclou <isabelle.chanclou@orange.com>
… >}} everywhere in the code

Signed-off-by: Isabelle Chanclou <isabelle.chanclou@orange.com>
Signed-off-by: Isabelle Chanclou <isabelle.chanclou@orange.com>
Signed-off-by: Isabelle Chanclou <isabelle.chanclou@orange.com>
Copy link
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.

Still some comments inside the PR to take into account but we're almost there I think.

site/content/docs/5.3/components/navs-tabs.md Outdated Show resolved Hide resolved
site/content/docs/5.2/components/navs-tabs.md Outdated Show resolved Hide resolved
site/content/docs/5.2/forms/layout.md Outdated Show resolved Hide resolved
@@ -25,6 +25,12 @@ Custom `<select>` menus need only a custom class, `.form-select` to trigger the

You may also choose from small and large custom selects to match our similarly sized text inputs.

{{< ods-incompatibility-alert >}}
These select sizes variants, with a **height different than 40px**, should not be used because they do not respect the Orange Design System specifications.
Copy link
Member

Choose a reason for hiding this comment

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

It's the second example of the artboard here: https://system.design.orange.com/0c1af118d/p/88ab5b-forms/b/599459

site/content/docs/5.2/getting-started/introduction.md Outdated Show resolved Hide resolved
site/content/docs/5.3/forms/layout.md Show resolved Hide resolved
Signed-off-by: Isabelle Chanclou <isabelle.chanclou@orange.com>
…ng the dark mode now available on main branch

Signed-off-by: Isabelle Chanclou <isabelle.chanclou@orange.com>
@B3nz01d B3nz01d added this to Dev Review in 🟣 PR Board (Draft) Mar 29, 2023
Signed-off-by: Isabelle Chanclou <isabelle.chanclou@orange.com>
@sonarcloud
Copy link

sonarcloud bot commented Apr 17, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

Copy link
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.

With the last changes, I'd rather set a global callout on badges to avoid hiding everything.
One .nav-underline.nav-justified render is broken.

Revert 4fcd51d if you don't like it.

@louismaximepiton louismaximepiton force-pushed the main-ic-add-design-callouts-in-docs branch from a0a8251 to 4fcd51d Compare January 8, 2024 10:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Improvements or additions to documentation feature v5
Projects
Status: Dev Review In Progress
🟣 PR Board (Draft)
Need Dev Review
4 participants