-
Notifications
You must be signed in to change notification settings - Fork 73
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
[OSCI] Clean/breadcrumb updates - Refactoring use of 'let' for 'const' keyword and CSS modifier '--last' for one class only #1144
[OSCI] Clean/breadcrumb updates - Refactoring use of 'let' for 'const' keyword and CSS modifier '--last' for one class only #1144
Conversation
Signed-off-by: Samuel Valdes Gutierrez <valdesgutierrez@gmail.com>
Signed-off-by: Samuel Valdes Gutierrez <valdesgutierrez@gmail.com>
…eadcrumb class, keeping it only in .ouiBreadcrumbWrapper class Signed-off-by: Samuel Valdes Gutierrez <valdesgutierrez@gmail.com>
…eadcrumb class, keeping it only in .ouiBreadcrumbWrapper class Signed-off-by: Samuel Valdes Gutierrez <valdesgutierrez@gmail.com>
Signed-off-by: Samuel Valdes Gutierrez <valdesgutierrez@gmail.com>
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.
Signed-off-by: Samuel Valdes Gutierrez <valdesgutierrez@gmail.com>
@BSFishy issue resolved. It was a minor mistake in the definition for calculating the variable |
Any updates on this side? The corrections you requested are ready for review. Regards, Samuel |
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.
Still need to test locally, but other than this change it looks good
Visually looks good. Want to see this change, though, for cleanliness reasons |
…ter readability of code Signed-off-by: Samuel Valdes Gutierrez <valdesgutierrez@gmail.com>
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.
Only visual change is that the collapsed breadcrumb ellipses are a slightly brighter color, which I think was the original intention. Looks good!
Hi @BSFishy, do you want me to review the color you mentioned for the breadcrumb ellipsis? |
Nope, the color looks better imo. I think I was trying to make this change when I redid this implementation but was running into issues and didn't want to hold it for longer than I already was, so this change is good in my book! |
Signed-off-by: Samuel Valdes Gutierrez <valdesgutierrez@gmail.com>
Great! Btw just solved a merge conflict in the CHANGELOG.md that popped up here in the GitHub Interface. All good now. |
Signed-off-by: Josh Romero <rmerqg@amazon.com>
PR updated with the |
Just need another reviewer |
…' keyword and CSS modifier '--last' for one class only (#1144) * refactoring changing 'let' variables with 'const' Signed-off-by: Samuel Valdes Gutierrez <valdesgutierrez@gmail.com> * refactoring changing 'let' variables with 'const' Signed-off-by: Samuel Valdes Gutierrez <valdesgutierrez@gmail.com> * refactoring _breadcrumbs.sccs, removing '--last' modifier from .ouiBreadcrumb class, keeping it only in .ouiBreadcrumbWrapper class Signed-off-by: Samuel Valdes Gutierrez <valdesgutierrez@gmail.com> * refactoring _breadcrumbs.sccs, removing '--last' modifier from .ouiBreadcrumb class, keeping it only in .ouiBreadcrumbWrapper class Signed-off-by: Samuel Valdes Gutierrez <valdesgutierrez@gmail.com> * updating CHANGELOG.md file Signed-off-by: Samuel Valdes Gutierrez <valdesgutierrez@gmail.com> * fixing calculation of calculatedMax, breadcrumbs.tsx, line 310 Signed-off-by: Samuel Valdes Gutierrez <valdesgutierrez@gmail.com> * updating breadcrumbs JSX according suggestion from maintainer for better readability of code Signed-off-by: Samuel Valdes Gutierrez <valdesgutierrez@gmail.com> --------- Signed-off-by: Samuel Valdes Gutierrez <valdesgutierrez@gmail.com> Signed-off-by: Josh Romero <rmerqg@amazon.com> Co-authored-by: Josh Romero <rmerqg@amazon.com> (cherry picked from commit 064a02c) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…' keyword and CSS modifier '--last' for one class only (#1144) * refactoring changing 'let' variables with 'const' Signed-off-by: Samuel Valdes Gutierrez <valdesgutierrez@gmail.com> * refactoring changing 'let' variables with 'const' Signed-off-by: Samuel Valdes Gutierrez <valdesgutierrez@gmail.com> * refactoring _breadcrumbs.sccs, removing '--last' modifier from .ouiBreadcrumb class, keeping it only in .ouiBreadcrumbWrapper class Signed-off-by: Samuel Valdes Gutierrez <valdesgutierrez@gmail.com> * refactoring _breadcrumbs.sccs, removing '--last' modifier from .ouiBreadcrumb class, keeping it only in .ouiBreadcrumbWrapper class Signed-off-by: Samuel Valdes Gutierrez <valdesgutierrez@gmail.com> * updating CHANGELOG.md file Signed-off-by: Samuel Valdes Gutierrez <valdesgutierrez@gmail.com> * fixing calculation of calculatedMax, breadcrumbs.tsx, line 310 Signed-off-by: Samuel Valdes Gutierrez <valdesgutierrez@gmail.com> * updating breadcrumbs JSX according suggestion from maintainer for better readability of code Signed-off-by: Samuel Valdes Gutierrez <valdesgutierrez@gmail.com> --------- Signed-off-by: Samuel Valdes Gutierrez <valdesgutierrez@gmail.com> Signed-off-by: Josh Romero <rmerqg@amazon.com> Co-authored-by: Josh Romero <rmerqg@amazon.com> (cherry picked from commit 064a02c) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…' keyword and CSS modifier '--last' for one class only (#1144) (#1248) * refactoring changing 'let' variables with 'const' * refactoring changing 'let' variables with 'const' * refactoring _breadcrumbs.sccs, removing '--last' modifier from .ouiBreadcrumb class, keeping it only in .ouiBreadcrumbWrapper class * refactoring _breadcrumbs.sccs, removing '--last' modifier from .ouiBreadcrumb class, keeping it only in .ouiBreadcrumbWrapper class * updating CHANGELOG.md file * fixing calculation of calculatedMax, breadcrumbs.tsx, line 310 * updating breadcrumbs JSX according suggestion from maintainer for better readability of code --------- (cherry picked from commit 064a02c) Signed-off-by: Samuel Valdes Gutierrez <valdesgutierrez@gmail.com> Signed-off-by: Josh Romero <rmerqg@amazon.com> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Josh Romero <rmerqg@amazon.com>
Description
This PR addresses the new requests asked for the OuiBreadcrumb component as detailed below:
The specific updates done were:
breadcrumbs.tsx
file usingconst
keywords instead oflet
._breadcrumbs.scss
file removing the CSS--last
modifier from.ouiBreadcrumb
class and keeping it only in.ouiBreadcrumbWrapper
class.Issues Resolved
Issue #377
Check List
yarn lint
yarn test-unit
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.