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
[admin_style_v3
] As an enterprise user i can see the back office with new brand colours
#10949
Conversation
6a5c158
to
60b9dfd
Compare
admin_style_v3
] As an enterprise user i can see the back office with new brand colours
f95aa78
to
fc428c3
Compare
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 work, it's beautiful!
I submitted a new commit based on my comment, how does that look to you?
PS great commit history too, makes it super easy to follow.
text-transform: lowercase; | ||
&::first-letter { | ||
text-transform: uppercase; | ||
} |
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.
Neat trick! From what I can see, this is necessary to convert "Order Cycles" to "Order cycles" and the same for "Bulk Order Management".
Why not just update the title source itself?
Hmm that took a few mins to find, I didn't realise it was quite so complicated. But still this looks like a better place to update: https://github.com/openfoodfoundation/openfoodnetwork/blob/master/app/helpers/spree/admin/navigation_helper.rb#L27-L29
I think we can use a different string helper other than .titleize
@@ -61,6 +61,8 @@ nav.menu { | |||
} | |||
|
|||
#admin-menu { | |||
box-shadow: 0px 1px 0px rgba(0, 0, 0, 0.05), 0px 2px 2px rgba(0, 0, 0, 0.07); |
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 you think we could keep borders in variables.scss? This would help us keep them consistent where possible.
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.
(but maybe not right now so we avoid merge conflicts!)
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.
All good except the failing specs now.
$color-1: #ffffff !default; // White | ||
$color-2: #9fc820 !default; // Green | ||
$color-3: #008397 !default; // Teal (Allports) | ||
$color-4: #6788a2 !default; // Dark Blue | ||
$color-5: #c85136 !default; // Red/Orange (Mojo) | ||
$color-6: #ff9300 !default; // Yellow | ||
$color-7: #eff1f2 !default; // Light grey | ||
$color-8: #191c1d !default; // Near-black | ||
$color-9: #2e3132 !default; // Dark Grey |
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.
Maybe it's difficult in the transition between styles but I find it hard to read $color-7
in CSS without knowing which one it is.
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 agree, I think I'll suggest an update in a future PR.
// Probably
$teal: #008397; // Allports
// or
$palette-teal: #008397; // Allports
// and purely for backwards-compatibility during transition:
$color-3: $palette-teal !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.
PS It's only now that I learnt what the !default
modifier is for. It's like the ||=
ruby operator, it assigns only if not already set.
I'm not sure if we ever make use of this, and it doesn't seem like a good idea, so I might suggest removing that too..
22a77cf
to
458859d
Compare
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.
Fixed up my spec errors and applied Maikel's suggestion.
$color-1: #ffffff !default; // White | ||
$color-2: #9fc820 !default; // Green | ||
$color-3: #008397 !default; // Teal (Allports) | ||
$color-4: #6788a2 !default; // Dark Blue | ||
$color-5: #c85136 !default; // Red/Orange (Mojo) | ||
$color-6: #ff9300 !default; // Yellow | ||
$color-7: #eff1f2 !default; // Light grey | ||
$color-8: #191c1d !default; // Near-black | ||
$color-9: #2e3132 !default; // Dark Grey |
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 agree, I think I'll suggest an update in a future PR.
// Probably
$teal: #008397; // Allports
// or
$palette-teal: #008397; // Allports
// and purely for backwards-compatibility during transition:
$color-3: $palette-teal !default;
$color-1: #ffffff !default; // White | ||
$color-2: #9fc820 !default; // Green | ||
$color-3: #008397 !default; // Teal (Allports) | ||
$color-4: #6788a2 !default; // Dark Blue | ||
$color-5: #c85136 !default; // Red/Orange (Mojo) | ||
$color-6: #ff9300 !default; // Yellow | ||
$color-7: #eff1f2 !default; // Light grey | ||
$color-8: #191c1d !default; // Near-black | ||
$color-9: #2e3132 !default; // Dark Grey |
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.
PS It's only now that I learnt what the !default
modifier is for. It's like the ||=
ruby operator, it assigns only if not already set.
I'm not sure if we ever make use of this, and it doesn't seem like a good idea, so I might suggest removing that too..
@@ -61,6 +61,8 @@ nav.menu { | |||
} | |||
|
|||
#admin-menu { | |||
box-shadow: 0px 1px 0px rgba(0, 0, 0, 0.05), 0px 2px 2px rgba(0, 0, 0, 0.07); |
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.
(but maybe not right now so we avoid merge conflicts!)
Co-Authored-By: Maikel <maikel@email.org.au>
CSS property `capitalize` uppercase all first letter of each words. I need to use a small trick with `::first-letter` selector
+ add some padding to separate those borders then
I chose .capitalize instead of .humanize, because the latter has extra features which may not be desired.
f11f4e4
to
e2ba18f
Compare
Reading all your suggestions/comments/.. I think we're ready now, right? |
Hi @jibees, For the main navigation I can confirm that
Here is an example where I think we would want to have more capital letters than just the first one. Shouldn't it be Here is an example where I found some tiny bits of old colors, but I assume this is not the time to report those now: ConclusionIt's looking great! 🎉 |
Right.
I'd vote for OIDC Settings and not Thanks! |
What? Why?
TODO:
What should we test?
admin_style_v3
admin_style_v3
Release notes
Changelog Category: User facing changes
The title of the pull request will be included in the release notes.
Dependencies
Documentation updates