-
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
Update breadcrumbs to new styling #131
Update breadcrumbs to new styling #131
Conversation
Signed-off-by: Matt Provost <provomat@amazon.com>
Signed-off-by: Matt Provost <provomat@amazon.com>
Signed-off-by: Matt Provost <provomat@amazon.com>
Signed-off-by: Matt Provost <provomat@amazon.com>
Signed-off-by: Matt Provost <provomat@amazon.com>
Signed-off-by: Matt Provost <provomat@amazon.com>
Signed-off-by: Matt Provost <provomat@amazon.com>
Signed-off-by: Matt Provost <provomat@amazon.com>
Signed-off-by: Matt Provost <provomat@amazon.com>
Signed-off-by: Matt Provost <provomat@amazon.com>
This is for v2.0.0, right? |
I think this feature is targeted for 2.0.0, if I'm not mistaken. Although I think this could technically be in a minor release, I think we're focused on pushing directly through to 2.0 right now |
This change is already live on dashboards. The work here is to integrate it into OUI. Not sure if that impacts versioning or not.
Message ID: ***@***.***>
|
From the Dashboards perspective, we'd prefer that this be backported to |
That's not quite true - this is a re-implementation/refactor of the dashboards implementation, which removes the fragile dependency on blur transforms. |
// Breadcrumbs | ||
$ouiBreadcrumbBlueBackground: #163F66; | ||
$ouiBreadcrumbGrayBackground: #4C636F; | ||
$ouiBreadcrumbCollapsedLink: #FFF; | ||
$ouiBreadCrumbHoverColor: #B0B8BB; |
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.
Do we need a todo or issue link here? If memory serves, these colors aren't necessarily intended to be specific to breadcrumbs - they're from an upcoming theme palette. But I may be wrong about that.
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.
cc @KrooshalUX to weigh in on this
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.
const isFirstBreadcrumb = index === 0; | ||
const isLastBreadcrumb = index === breadcrumbs.length - 1; | ||
|
||
const breadcrumbWrapperClasses = classNames('ouiBreadcrumbWrapper', { | ||
'ouiBreadcrumbWrapper--first': isFirstBreadcrumb, | ||
'ouiBreadcrumbWrapper--last': isLastBreadcrumb, | ||
'ouiBreadcrumbWrapper--truncate': truncate, | ||
}); |
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.
We inherited this - but do we prefer explicitly assigning first/last classes in ts vs just using pseudo selectors in the style files?
$ouiBreadcrumbBlueBackground: #B9D9EB !default; | ||
$ouiBreadcrumbGrayBackground: #D9E1E2 !default; | ||
$ouiBreadcrumbCollapsedLink: #002A3A !default; | ||
$ouiBreadCrumbHoverColor: #535861 !default; |
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.
If the defaults are set here, do we need to also hardcode the values into the theme?
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.
I believe so, but this is more of an issue with the old theming system, which we are working towards having a cleaner, more pleasant solution for.
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.
color: $ouiTextSubduedColor; | ||
|
||
&:hover { | ||
color: $ouiBreadCrumbHoverColor !important; // sass-lint:disable-line no-important |
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.
Why all the important
declarations? We should reconsider the class names and other styles that are causing these conflicts rather than just sledgehammering them.
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.
+1 important should be avoided.
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.
Created an issue for this: #376
class="ouiBreadcrumbWrapper ouiBreadcrumbWrapper--first ouiBreadcrumbWrapper--last" | ||
> | ||
<span | ||
aria-current="page" | ||
class="ouiBreadcrumb ouiBreadcrumb--last" |
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.
Is it necessary to have a --last
class on both the wrapper and the breadcrumb? It's OK, just a little redundant and therefore fragile.
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.
@joshuarrrr I am curious if your feedback is blocking for iteration or could those be held until a time where the team can focus on refactoring? The reason I ask is because its blocking release of the component and the documentation in #194 . We can work together to create a separate refactor issue if these pieces of feedback if its non blocking. |
* Remove separator Signed-off-by: Matt Provost <provomat@amazon.com> * Fix tests and lints Signed-off-by: Matt Provost <provomat@amazon.com> * Add new breadcrumb style Signed-off-by: Matt Provost <provomat@amazon.com> * Add new style to collapsed breadcrumbs Signed-off-by: Matt Provost <provomat@amazon.com> * Fix some styling issues Signed-off-by: Matt Provost <provomat@amazon.com> * Small cleanup Signed-off-by: Matt Provost <provomat@amazon.com> * Refactor wrapper implementation Signed-off-by: Matt Provost <provomat@amazon.com> * Add breadcrumb wall Signed-off-by: Matt Provost <provomat@amazon.com> * Update some colors Signed-off-by: Matt Provost <provomat@amazon.com> * Fix height issue Signed-off-by: Matt Provost <provomat@amazon.com> --------- Signed-off-by: Matt Provost <provomat@amazon.com> (cherry picked from commit c8942c1)
* Remove separator Signed-off-by: Matt Provost <provomat@amazon.com> * Fix tests and lints Signed-off-by: Matt Provost <provomat@amazon.com> * Add new breadcrumb style Signed-off-by: Matt Provost <provomat@amazon.com> * Add new style to collapsed breadcrumbs Signed-off-by: Matt Provost <provomat@amazon.com> * Fix some styling issues Signed-off-by: Matt Provost <provomat@amazon.com> * Small cleanup Signed-off-by: Matt Provost <provomat@amazon.com> * Refactor wrapper implementation Signed-off-by: Matt Provost <provomat@amazon.com> * Add breadcrumb wall Signed-off-by: Matt Provost <provomat@amazon.com> * Update some colors Signed-off-by: Matt Provost <provomat@amazon.com> * Fix height issue Signed-off-by: Matt Provost <provomat@amazon.com> --------- Signed-off-by: Matt Provost <provomat@amazon.com> (cherry picked from commit c8942c1) Co-authored-by: Matt Provost <provomat@amazon.com> Co-authored-by: Sean Neumann <1413295+seanneumann@users.noreply.github.com>
Signed-off-by: Matt Provost <provomat@amazon.com>
…pensearch-project#379)" This reverts commit 70c12b0. Signed-off-by: Matt Provost <provomat@amazon.com>
Description
Migrate breadcrumb style to OUI
Issues Resolved
#22
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.