Skip to content
This repository has been archived by the owner on Nov 29, 2022. It is now read-only.

v5.0.0 Release #335

Merged
merged 13 commits into from
Aug 23, 2021
Merged

v5.0.0 Release #335

merged 13 commits into from
Aug 23, 2021

Conversation

ashleynolan
Copy link
Contributor

v5.0.0

August 23, 2021

Main changes:

  • Colour and typography variables updated to use pie-design-tokens repo instead of fozzie-colour-palette.
  • When importing v5 fozzie, consuming applications only get included variables, functions and mixins (no classes). Component styles for buttons, form-fields etc are being deprecated as we move our components over to versionable packages, but can still be included via optional mixins applications that still need this as part of the transition.
  • Two optional variables can be used to include a base set of styles (similar to v4). These are $includeBaseFramework and $includeMinimalFramework. Check out the _templates.scss file to see what styles are included when these are set to true.

Changed

  • Eyeglass version bumped to v3.
  • Made all styles and components optional (wrapped in a mixin).
  • Lots of colour variables moved over as part of using the new pie-design-tokens repo instead of fozzie-colour-palette.
  • Updated type-map with new typography variables for font-size and line-height.

Removed

  • /settings/glyphs moved into badges, as it is the only place it is used.
  • /images as not used.
  • kickoff-grid dependency brought into fozzie, to remove external dependency (making it easier to change if needed).
  • $font-weight-bold was removed as it now comes straight from pie-design-tokens.

** Full list of changes (including all colour variable changes) can be found in beta release CHANGELOGs (see full CHANGELOG entries) **

UI Review Checks

  • This PR has been checked with regard to our brand guidelines
  • UI Documentation has been updated (more incoming shortly)

ashleynolan and others added 12 commits August 23, 2021 13:01
…ns (#316)

* v5.0.0-beta.0 – Initial v5 work to move all styles into optional mixins

* v5.0.0-beta.0 – Fixing initial changes after testing importing the legacy styles
* Add optional loading indicator component

* Prevent Prettier ruining files

* Added line breaks back to file after format

* Added change to changelog
* v5.0.0-beta.6 - more color vars transitioned + o-link styles changes

* v5.0.0-beta.6 - code style

Co-authored-by: Maryia Radchuk <maryia.radchuk@just-eat.com>
…e vars to pie-design-tokens (#327)

Co-authored-by: Maryia Radchuk <maryia.radchuk@just-eat.com>
…tomise the colours of the spinner. (#328)

* v5.0.0 - Extending the loadingIndicator mixin to specify colours.

* v5.0.0-beta.8 - Adding mixin to be able to customise the colours of the spinner of the loading indicator.

Co-authored-by: Sacha Zvetelman <sacha.zvetelman@justeattakeaway.com>
@ashleynolan ashleynolan requested review from a team as code owners August 23, 2021 12:22
Copy link
Contributor

@DamianMullins DamianMullins left a comment

Choose a reason for hiding this comment

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

Looks good to me, and haven't noticed any issues whilst using the beta version on menu.

One thing to mention, to future-proof us a little, could we consider removing the $spacing variables x0.5 & x1.5 as they aren't using valid syntax in dart-sass (we're using the deprecated node-sass npm package currently)? Where people are using those variables they can replace it with something like spacing() * 0.5 if they need to use the fraction values?

If not in v5 possibly in v6?

@ashleynolan
Copy link
Contributor Author

@DamianMullins Yeh – funnily enough, I think we hit this when trying to upgrade one of our dependencies in the component repo, so I think that'll happen pretty shortly 👍

Copy link
Member

@dandel10n dandel10n left a comment

Choose a reason for hiding this comment

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

When I updated fozzie to use pie design tokens I didn't use aliases as much as I could so all my comments here are to fix this. This will be fixed in the next PR so doesn't block this one.

border-radius: 3px;
}
mark {
background: $color-yellow-10;
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
background: $color-yellow-10;
background: $color-support-warning-02;

Comment on lines +14 to +26
$breadcrumb-text-color : $color-grey-50;
$breadcrumb-text-weight : $font-weight-bold;
$breadcrumb-link-color : $color-grey;
$breadcrumb-link-color--hover : $color-grey-50;
$breadcrumb-icon-fillColor : $color-black;
$breadcrumb--compact-background : rgba($color-black, 0.2);

$breadcrumb--transparent-text-color : $color-white;
$breadcrumb--transparent-icon-fillColor : $color-white;
$breadcrumb--transparent-link-color : $color-white;

$breadcrumb--pill-text-color : $color-white;
$breadcrumb--pill-link-color--hover : $color-white;
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
$breadcrumb-text-color : $color-grey-50;
$breadcrumb-text-weight : $font-weight-bold;
$breadcrumb-link-color : $color-grey;
$breadcrumb-link-color--hover : $color-grey-50;
$breadcrumb-icon-fillColor : $color-black;
$breadcrumb--compact-background : rgba($color-black, 0.2);
$breadcrumb--transparent-text-color : $color-white;
$breadcrumb--transparent-icon-fillColor : $color-white;
$breadcrumb--transparent-link-color : $color-white;
$breadcrumb--pill-text-color : $color-white;
$breadcrumb--pill-link-color--hover : $color-white;
$breadcrumb-text-color : $color-content-subdued;
$breadcrumb-text-weight : $font-weight-bold;
$breadcrumb-link-color : $color-content-interactive-tertiary;
$breadcrumb-link-color--hover : darken($color-content-interactive-tertiary, $color-hover-01);
$breadcrumb-icon-fillColor : $color-content-subdued;
$breadcrumb--compact-background : $color-overlay;
$breadcrumb--transparent-text-color : $color-content-link-light;
$breadcrumb--transparent-icon-fillColor : $color-content-link-light;
$breadcrumb--transparent-link-color : $color-content-link-light;
$breadcrumb--pill-text-color : $color-content-link-inverse;
$breadcrumb--pill-link-color--hover : $color-content-link-inverse;

*/

.c-breadcrumb--pill {
background-color: rgba($color-black, 0.5);
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
background-color: rgba($color-black, 0.5);
background-color: $color-overlay;

Comment on lines +14 to +15
$card-bgColor--active : $color-white;
$card-bgColor--disabled : $color-grey-20;
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
$card-bgColor--active : $color-white;
$card-bgColor--disabled : $color-grey-20;
$card-bgColor--active : $color-container-default;
$card-bgColor--disabled : $color-disabled-01;

$card-borderColor : $color-border-strong;
$card-section-margin : spacing(x4);
$card-section-margin--large : spacing(x8);
$card-section-highlight-backgroundColor : $color-orange-10;
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
$card-section-highlight-backgroundColor : $color-orange-10;
$card-section-highlight-backgroundColor : $color-support-brand-02;

&:hover, &:focus {
color: $color-link-hover;
&:active {
color: darken($color-content-link, $color-active-02);
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
color: darken($color-content-link, $color-active-02);
color: darken($color-content-link, $color-active-01);


$list-bullet-color: $orange;
$list-bullet-color: $color-orange;
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
$list-bullet-color: $color-orange;
$list-bullet-color: $color-dark-content-brand;

Comment on lines +22 to +23
$table-bgColor--accent : $color-grey-10 !global; // Background color used for `.table-striped`.
$table-border--color : $color-grey-10 !global; // Border color for table and cell borders.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
$table-bgColor--accent : $color-grey-10 !global; // Background color used for `.table-striped`.
$table-border--color : $color-grey-10 !global; // Border color for table and cell borders.
$table-bgColor--accent : $color-background-default !global; // Background color used for `.table-striped`.
$table-border--color : $color-background-default !global; // Border color for table and cell borders.

$table-bgColor--accent : $color-grey-10 !global; // Background color used for `.table-striped`.
$table-border--color : $color-grey-10 !global; // Border color for table and cell borders.
$table-border--width : 2px !global; // Border width for table border.
$table-innerBorder--color : $color-grey-40 !global;
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
$table-innerBorder--color : $color-grey-40 !global;
$table-innerBorder--color : $color-border-strong !global;

@include bordered();
}
.u-lightenBg {
background-color: $color-white;
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
background-color: $color-white;
background-color: $color-container-default;

@ashleynolan ashleynolan merged commit c94a8ee into master Aug 23, 2021
@dandel10n dandel10n deleted the v5.0.0 branch August 24, 2021 08:57
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants