bpk-mixins
Sass mixins and variables for Backpack.
Installation
npm install bpk-mixins --save-devUsage
@import '~bpk-mixins/index';
.bpk-my-component {
@include bpk-button;
}This package has now been merged into @skyscanner/backpack-web. Please upgrade to version 27.0.0+ to continue getting updates and migrate your imports to '@skyscanner/backpack-web/bpk-mixins'
Sass mixins and variables for Backpack.
Sass mixins and variables for Backpack.
npm install bpk-mixins --save-dev@import '~bpk-mixins/index';
.bpk-my-component {
@include bpk-button;
}Added:
@skyscanner/bpk-foundations-web: 16.1.0 => 17.0.0
@skyscanner/bpk-foundations-ios: 6.1.0 => 6.2.0
@skyscanner/bpk-foundations-android: 7.1.0 => 7.2.0
Breaking:
@skyscanner/bpk-foundations-web: 16.1.0 => 17.0.0
spacing v2 and spacing tokens.bpk-heading-content-margin-top token. bpk-mixins: 41.2.1 => 42.0.0
bpk-content-heading as this is not used.Breaking:
@skyscanner/bpk-svgs: 16.4.0 => 17.0.0
aria-hidden attribute set to true by default to hide icons from Assistive Technologies. You can overwrite the value if needed by passing aria-hidden="false" to the icon component.Changed:
bpk-mixins: 41.1.1 => 41.2.0
node-sass library.@skyscanner/bpk-svgs: 16.3.4 => 16.4.0
Added:
@skyscanner/bpk-foundations-web: 16.0.0 => 16.1.0:
bpk-mixins: 41.0.0 => 41.1.0:
Breaking:
Removing deprecated border tokens and mixins.
@skyscanner/bpk-foundations-web: 15.3.0 => 16.0.0:
border-radius-pill and border-radius-pill-lg tokens. Use bpk-border-radius-md instead. Otherwise, check with your designer to choose any other supported radius.bpk-mixins: 40.3.1 => 41.0.0:
bpk-border-radius-pill mixin. Use bpk-border-radius-lg as the replacement.bpk-badge--light mixin, please use bpk-badge--normal.bpk-badge--destructive mixin, please use bpk-badge--critical.Added:
@skyscanner/bpk-foundations-web: 15.2.0 => 15.3.0:
@skyscanner/bpk-foundations-ios: 6.0.0 => 6.1.0:
@skyscanner/bpk-foundations-android: 7.0.0 => 7.1.0:
bpk-mixins: 40.2.1 => 40.3.0:
Changed:
@skyscanner/bpk-svgs: 16.2.4 => 16.3.0
baggage-cabin-add, baggage-cabin-not-included, bpk-cabin, baggage-checked-add, baggage-checked-not-included, bpk-checked, baggage-generic iconsAdded:
@skyscanner/bpk-foundations-web: 15.1.0 => 15.2.0
bpk-mixins: 40.1.0 => 40.2.0
Fixed:
bpk-mixins: 40.0.0 => 40.1.0
bpk-icon-lg--align-to-large-button and bpk-spinner--align-to-large-button mixins to use correct tokenbpk-form-validation__container to use correct tokenAdded:
@skyscanner/bpk-foundations-web: 15.0.0 => 15.1.0
bpk-mixins: 40.0.0 => 40.1.0
Breaking:
@skyscanner/bpk-foundations-web: 14.0.1 => 15.0.0
bpk-mixins: 39.1.2 => 40.0.0
The following tokens have been removed. You should use the corresponding semantic tokens instead.
bpk-autosuggest-*bpk-badge-*bpk-grid-*. This component is no longer supported.bpk-rating-*bpk-state-selected-background-colorbpk-required-colorbpk-spacing-xs(). This size is no longer supported in our spacing system.bpk-card-color, bpk-modal-header-padding, bpk-panel-padding, bpk-panel-background-color, as well as all bpk-scrim-* tokens.bpk-calendar-*-color, bpk-calendar-nav-*, bpk-calendar-paddingbpk-horizontal-nav-link-color, bpk-horizontal-nav-link-hover-color, bpk-horizontal-nav-link-active-color, bpk-horizontal-nav-link-selected-colorbpk-banner-alert-background-color, bpk-banner-alert-expand-icon-fill, bpk-banner-alert-children-padding-x, bpk-banner-alert-children-padding-y, bpk-banner-alert-children-colorbpk-button-selected-*, bpk-button-text-align, bpk-button-font-size, bpk-button-font-weight, bpk-button-line-height, bpk-button-large-font-size, bpk-button-large-line-height, bpk-button-*-color, bpk-button-*-background-color, bpk-button-*-background-image, bpk-button-*-box-shadow, bpk-button-padding-*, bpk-button-large-padding-*, bpk-button-*-opacity, bpk-button-icon-*bpk-checkbox-checked-tick-color, bpk-radio-checked-circle-color, bpk-input-color, bpk-input-placeholder-color, bpk-select-border, bpk-select-color, bpk-select-disabled-color, bpk-label-color, bpk-label-font-size, bpk-label-line-heightTypography
bpk-text-{size}-font-size, bpk-text-{size}-font-weight, bpk-text-{size}-line-height, bpk-text-{size}-letter-spacing, where size is one of: xs, sm, base, lg, xl, xxl, xxxl, xxxxl, xxxxxlbpk-h-{size}-font-size, bpk-h-{size}-font-weight, bpk-h-{size}-line-height, where size is one of: 1, 2, 3, 4, 5, 6bpk-p-*, bpk-list-*, bpk-link-*
Important: You should not use typography tokens directly. Instead, use one of the supported mixins: hero-1, hero-2, hero-3, hero-4, hero-5, heading-1, heading-2, heading-3, heading-4, heading-5, subheading, body-longform, body-default, footnote, caption, label-1, label-2, label-3
bpk-mixins: 39.1.2 => 40.0.0
bpk-button--outline, bpk-button--selectedbpk-heading-6, bpk-heading--no-bottom-marginbpk-grid__*bpk-icon-sm and bpk-icon-lg
@skyscanner/bpk-foundations-web: 14.0.1 => 15.0.0
@skyscanner/bpk-foundations-web/tokens/breakpoints.common@skyscanner/bpk-foundations-web/tokens/breakpoints.default.scss@skyscanner/bpk-foundations-web/tokens/breakpoints.es6@skyscanner/bpk-foundations-web/tokens/breakpoints.scss@skyscanner/bpk-foundations-web/tokens/breakpoints.rawIf you are importing tokens from any of the above mentioned files, please replace the import path as such:
@skyscanner/bpk-foundations-web/tokens/breakpoints.extension -> @skyscanner/bpk-foundations-web/tokens/base.extension
Fixed:
@skyscanner/bpk-foundations-web: 14.0.0 => 14.0.1breakpointDesktopMargin, selectLargeHeight, textareaMinHeight, ratingBaseWidth, ratingBaseHeight, ratingSmWidth, ratingSmHeight, ratingLgWidth, ratingLgHeight JS tokensFixed:
bpk-mixins: 39.1.0 => 39.1.1:Changed:
bpk-mixins: 39.0.1 => 39.1.0
input and textarea from text-disabled to text-secondary.Added:
@skyscanner/bpk-svgs: 16.1.1 => 16.2.0
Origin icon.Breaking:
@skyscanner/bpk-foundations-android: 6.0.0 => 7.0.0@skyscanner/bpk-foundations-common: 5.0.0 => 6.0.0@skyscanner/bpk-foundations-ios: 5.0.0 => 6.0.0@skyscanner/bpk-foundations-react-native: 3.1.5 => 4.0.0@skyscanner/bpk-foundations-web: 13.6.0 => 14.0.0bpk-mixins: 38.0.0 => 39.0.0bpk-stylesheets: 8.1.25 => 9.0.0@skyscanner/bpk-svgs: 16.1.0 => 16.1.1Breaking:
bpk-mixins: 37.2.1 => 38.0.0
bpk-badge--light mixin and replaced with exact colour replacement bpk-badge--normal.bpk-badge--warning mixin for use when creating warning badges.warning from being the default badge type.bpk-badge--destructive mixin and replaced with exact colour replacement bpk-badge--critical.Added:
@skyscanner/bpk-svgs: 16.0.8 => 16.1.0
depart and return icons for use on Android with RTL.`Breaking:
@skyscanner/bpk-foundations-android: 5.1.4 => 6.0.0
@skyscanner/bpk-foundations-ios: 4.1.4 => 5.0.0
BORDER_RADIUS_PILL to BORDER_RADIUS_XLChanged
@skyscanner/bpk-foundations-web: 13.5.0 => 13.6.0
bpk-mixins: 37.1.2 => 37.2.0
bpk-border-radius-pill token. Use bpk-border-radius-md instead. Otherwise, check with your designer to choose any other supported radius.bpk-border-radius-pill-lg token. Use bpk-border-radius-lg instead.bpk-border-radius-lg, bpk-border-radius-xl tokensbpk-border-radius-sm from 6px to 8pxbpk-mixins:
bpk-border-radius-pill mixin. Use bpk-border-radius-md instead. Otherwise, check with your designer to choose any other supported radius.bpk-border-radius-lg and bpk-border-radius-xl mixinsChanged:
@skyscanner/bpk-foundations-web: 13.4.0 => 13.5.0$bpk-button-text-align$bpk-button-selected-color, $bpk-button-selected-hover-color, $bpk-button-selected-active-color, $bpk-button-selected-background-color, $bpk-button-selected-hover-background-color, $bpk-button-selected-active-background-color, $bpk-button-selected-background-image, $bpk-button-selected-hover-background-image, $bpk-button-selected-active-background-imageChanged:
@skyscanner/bpk-foundations-web: 13.3.0 => 13.4.0$bpk-autosuggest-list-background-color, $bpk-autosuggest-list-item-active-background-color, $bpk-autosuggest-list-item-highlighted-background-color$bpk-badge-padding-x, $bpk-badge-padding-y,$bpk-badge-background-color, $bpk-badge-centered-vertical-align$bpk-horizontal-nav-link-color, $bpk-horizontal-nav-link-hover-color, $bpk-horizontal-nav-link-active-color, $bpk-horizontal-nav-link-selected-color$bpk-banner-alert-background-color, $bpk-banner-alert-expand-icon-fill, $bpk-banner-alert-children-padding-x, $bpk-banner-alert-children-padding-y, $bpk-banner-alert-children-colorChanged:
@skyscanner/bpk-foundations-web: 13.2.1 => 13.3.0
$bpk-scrim-opacity, $bpk-scrim-initial-opacity, $bpk-scrim-dark-opacity, $bpk-scrim-mobile-opacity$bpk-panel-padding and $bpk-panel-background-color$bpk-card-colorbpk-mixins: 37.0.0 => 37.1.0
bpk-panel--padded - change padding to 16px to be consistent with card paddingBreaking:
bpk-mixins: 36.2.0 => 37.0.0@mixin bpk-content-container@mixin bpk-content-container--bare-html@mixin bpk-content-container--bare-html-alternatePatch:
@skyscanner/bpk-foundations-web: 13.2.0 => 13.2.1calendarDaySize token value to work with the existing bpk calendar utilsChanged:
@skyscanner/bpk-foundations-web: 13.1.1 => 13.2.0
Deprecated calendar tokens as their usage is low and not widely used and using semantic tokens is preferred. The following are deprecated:
$bpk-calendar-padding$bpk-calendar-day-color$bpk-calendar-day-selected-color$bpk-calendar-day-focused-color$bpk-calendar-day-focused-border-color$bpk-calendar-day-hover-color$bpk-calendar-day-hover-background-color$bpk-calendar-day-active-color$bpk-calendar-day-active-background-color$bpk-calendar-day-disabled-color$bpk-calendar-day-outside-color$bpk-calendar-nav-icon-fill$bpk-calendar-nav-icon-hover-fill$bpk-calendar-nav-icon-active-fill$bpk-calendar-nav-icon-disabled-fillDeprecated grid tokens as no longer supported.
$bpk-grid-columns$bpk-grid-gutter$bpk-grid-container-padding$bpk-grid-container-mobile-paddingbpk-mixins: 36.1.3 => 36.2.0
BpkGrid component being deprecated for a number of years.Patched:
@skyscanner/bpk-foundations-web: 13.1.1 => 13.2.0animation tokens to pull from bpk-foundation-common. Values are not changing so nothing for consumers to change.Fixed:
bpk-label mixin using incorrect line height tokenChanged:
$bpk-checkbox-checked-tick-color$bpk-radio-checked-circle-color$bpk-input-color$bpk-input-placeholder-color$bpk-select-border$bpk-select-color$bpk-select-disabled-color$bpk-label-color$bpk-label-font-size$bpk-label-line-height$bpk-required-color$bpk-heading-margin-top$bpk-heading-margin-bottom$bpk-p-margin-top$bpk-p-margin-bottom$bpk-list-margin-top$bpk-list-margin-bottom$bpk-list-nested-margin-top$bpk-list-nested-margin-bottom$bpk-list-item-margin-top$bpk-list-item-margin-bottom$bpk-link-hover-text-decoration$bpk-link-*-colorBreaking:
@skyscanner/bpk-foundations-web: 12.1.4 => 13.0.0
@skyscanner/bpk-svgs: 15.2.1 => 16.0.0
Added:
brand style for badges.Fixed:
- Further reverting of recent stylelint changes as some new rules are suggesting things we don't currently support._bonds.scssFixed:
gulp-svgmin to latest version to fix broken iconsBreaking:
primary, success, lightAdded:
default, onDark, onImageFixed
@skyscanner/bpk-foundations-android: 5.1.1 => 5.1.2
@skyscanner/bpk-foundations-common: 4.1.1 => 4.1.2
@skyscanner/bpk-foundations-ios: 4.1.1 => 4.1.2
@skyscanner/bpk-foundations-react-native: 3.1.1 => 3.1.2
@skyscanner/bpk-foundations-web: 12.1.1 => 12.1.2
Fixed
@skyscanner/bpk-foundations-android: 5.1.0 => 5.1.1
@skyscanner/bpk-foundations-common: 4.1.0 => 4.1.1
@skyscanner/bpk-foundations-ios: 4.1.0 => 4.1.1
@skyscanner/bpk-foundations-react-native: 3.1.0 => 3.1.1
@skyscanner/bpk-foundations-web: 12.1.0 => 12.1.1
Breaking:
Button mixins to use label-1Changed
@skyscanner/bpk-foundations-web: 12.0.3 => 12.1.0
BUTTON_FONT_SIZE, BUTTON_FONT_WEIGHT, BUTTON_LINE_HEIGHT, BUTTON_LARGE_FONT_SIZE, BUTTON_LARGE_LINE_HEIGHTAdded:
@skyscanner/bpk-foundations-android: 5.0.2 => 5.1.0
@skyscanner/bpk-foundations-common: 4.0.2 => 4.1.0
@skyscanner/bpk-foundations-ios: 4.0.2 => 4.1.0
@skyscanner/bpk-foundations-react-native: 3.0.2 => 3.1.0
@skyscanner/bpk-foundations-web: 12.0.3 => 12.1.0
TEXT_DISABLED_ON_DARK_DAY and TEXT_DISABLED_ON_DARK_NIGHT tokensFixed
@skyscanner/bpk-foundations-android: 5.0.1 => 5.0.2
@skyscanner/bpk-foundations-common: 4.0.1 => 4.0.2
@skyscanner/bpk-foundations-ios: 4.0.1 => 4.0.2
@skyscanner/bpk-foundations-react-native: 3.0.1 => 3.0.2
@skyscanner/bpk-foundations-web: 12.0.2 => 12.0.3
Added:
baggage-cabin-add, baggage-cabin-not-included, baggage-cabin, baggage-checked-add, baggage-checked-not-included, baggage-checked, baggage-genericChanged:
bpk-code mixins to use new colours.Fixed:
scrim colours.Fixed:
Changed:
$bpk-button-*-color, $bpk-button-*-background-color, $bpk-button-*-background-imageBreaking:
Changed:
@skyscanner/bpk-foundations-common: 4.0.0 => 4.0.1 @skyscanner/bpk-foundations-android: 5.0.0 => 5.0.1 @skyscanner/bpk-foundations-ios: 4.0.0 => 4.0.1 @skyscanner/bpk-foundations-react-native: 3.0.0 => 3.0.1 @skyscanner/bpk-foundations-web: 11.0.0 => 11.0.1 Breaking:
@skyscanner/bpk-foundations-common: 3.2.1 => 4.0.0 @skyscanner/bpk-foundations-android: 4.4.1 => 5.0.0 @skyscanner/bpk-foundations-ios: 3.4.1 => 4.0.0 @skyscanner/bpk-foundations-react-native: 2.4.1 => 3.0.0 @skyscanner/bpk-foundations-web: 10.4.0 => 11.0.0 bpk-mixins: 32.2.0 => 33.0.0 bpk-stylesheets: 7.2.16 => 8.0.0 @skyscanner/bpk-svgs: 14.5.9 => 15.0.0 Changed:
$bpk-link-alternate-active-color$bpk-link-active-color$bpk-link-white-active-color$bpk-link-hover-colorbpk-link, bpk-link--active, bpk-link--alternate, bpk-link--white mixins to use semantic coloursChanged:
bpk-table mixinsbpk-table__cell--head mixin. This will change the weight of the text in the header cells of the table.Changed:
@skyscanner/bpk-foundations-common: 3.2.0 => 3.2.1 @skyscanner/bpk-foundations-android: 4.4.0 => 4.4.1 @skyscanner/bpk-foundations-ios: 3.4.0 => 3.4.1 @skyscanner/bpk-foundations-react-native 2.4.0 => 2.4.1: @skyscanner/bpk-foundations-web: 10.3.0 => 10.3.1 Added:
@skyscanner/bpk-foundations-common: 3.1.3 => 3.2.0 @skyscanner/bpk-foundations-android: 4.3.0 => 4.4.0 @skyscanner/bpk-foundations-ios: 3.3.0 => 3.4.0 @skyscanner/bpk-foundations-react-native: 2.3.0 => 2.4.0 @skyscanner/bpk-foundations-web: 10.2.0 => 10.3.0 Changed:
$bpk-banner-alert-event-color tokenAdded:
@skyscanner/bpk-foundations-android: 4.2.1 => 4.3.0 @skyscanner/bpk-foundations-ios: 3.2.1 => 3.3.0 @skyscanner/bpk-foundations-react-native: 2.2.1 => 2.3.0 @skyscanner/bpk-foundations-web: 10.0.0 => 10.2.0 Breaking:
bpk-foundations-web: 9.6.0 => 10.0.0
$bpk-badge-background-color to use semantic colour tokensbpk-mixins: 31.7.0 => 32.0.0
Changed:
bpk-foundations-web: 9.5.1 => 9.6.0
$bpk-select-border and $bpk-select-disabled-border-color to use semantic colour tokensbpk-mixins: 31.6.8 => 31.7.0
bpk-select, bpk-select--large, bpk-select--invalid to use semantic colour tokensChanged:
@skyscanner/bpk-foundations-android: 4.2.0 => 4.2.1@skyscanner/bpk-foundations-ios: 3.2.0 => 3.2.1@skyscanner/bpk-foundations-react-native: 2.2.0 => 2.2.1@skyscanner/bpk-foundations-web: 9.5.0 => 9.5.1Changed:
$bpk-autosuggest-list-item-active-background-colorAdded:
@skyscanner/bpk-foundations-android: 4.1.1 => 4.2.0@skyscanner/bpk-foundations-ios: 3.1.1 => 3.2.0@skyscanner/bpk-foundations-react-native: 2.1.1 => 2.2.0@skyscanner/bpk-foundations-web: 9.4.0 => 9.5.0Added:
Patched:
bpk-input--valid icon.Changed:
bpk-foundations-web: 9.3.0 => 9.4.0
$bpk-input-border, $bpk-input-color, $bpk-input-placeholder-color, $bpk-input-disabled-border-color, $bpk-input-disabled-color, $bpk-label-color, $bpk-label-disabled-color, $bpk-form-validation-color, $bpk-required-color tokens to use new colour tokens to prepare for new colour rollout.bpk-mixins: 31.6.3 => 31.6.4
bpk-input mixins to use semantic tokensbpk-textarea mixins to use semantic tokensChanged:
$bpk-horizontal-nav-link-hover-color and $bpk-horizontal-nav-link-active-color token valuesFixed:
@skyscanner/bpk-foundations-android: 4.1.0 => 4.1.1@skyscanner/bpk-foundations-ios: 3.1.0 => 3.1.1@skyscanner/bpk-foundations-react-native: 2.1.0 => 2.1.1@skyscanner/bpk-foundations-web: 9.2.0 => 9.2.1deprecated. This is due to the tokens being sorted so when the old colours came after the new colours it would override the details in the combined semantic tokens.Changed:
@skyscanner/bpk-foundations-web 9.1.0 => 9.2.0:$bpk-calendar-nav-icon-active-fill$bpk-calendar-nav-icon-disabled-fill$bpk-calendar-nav-icon-fill$bpk-calendar-nav-icon-hover-fill$bpk-calendar-day-active-background-color$bpk-calendar-day-disabled-color$bpk-calendar-day-hover-color$bpk-calendar-day-selected-background-color$bpk-calendar-day-selected-background-color tokenChanged:
@skyscanner/bpk-foundations-android: 4.0.0 => 4.1.0
@skyscanner/bpk-foundations-common: 3.0.0 => 3.1.0
@skyscanner/bpk-foundations-ios: 3.0.0 => 3.1.0
@skyscanner/bpk-foundations-react-native: 2.0.0 => 2.1.0
@skyscanner/bpk-foundations-web: 9.0.0 => 9.1.0
bpk-mixins: 31.5.0 => 31.6.0
bpk-stylesheets: 7.1.45 => 7.2.0
@skyscanner/bpk-svgs: 14.3.8 => 14.4.0
Breaking:
@skyscanner/bpk-foundations-common: 2.6.1 => 3.0.0
@skyscanner/bpk-foundations-android: 3.7.1 => 4.0.0
@skyscanner/bpk-foundations-ios: 2.7.1 => 3.0.0
@skyscanner/bpk-foundations-react-native: 1.6.1 => 2.0.0
@skyscanner/bpk-foundations-web: 8.5.1 => 9.0.0
TEXT_PRIMARY_ON_CONTRAST_DAY to TEXT_PRIMARY_INVERSE_DAYTEXT_PRIMARY_ON_CONTRAST_NIGHT to TEXT_PRIMARY_INVERSE_NIGHTTEXT_PRIMARY_ON_CONTRAST_DAY and TEXT_SECONDARY_ON_CONTRAST_NIGHTTEXT_ON_LIGHT_DAY, TEXT_ON_LIGHT_NIGHT, TEXT_ON_DARK_DAY and TEXT_ON_DARK_NIGHTFixed:
@skyscanner/bpk-foundations-common: 2.6.0 => 2.6.1
@skyscanner/bpk-foundations-android: 3.7.0 => 3.7.1
@skyscanner/bpk-foundations-ios: 2.7.0 => 2.7.1
@skyscanner/bpk-foundations-react-native: 1.6.0 => 1.6.1
@skyscanner/bpk-foundations-web: 8.5.0 => 8.5.1
NIGHT_GREY_20 to ##1D1B20.NIGHT_GREY_25 to #2C2C2E.SURFACE_HIGHLIGHT_NIGHT to NIGHT_GREY_25Changed:
@skyscanner/bpk-foundations-web: 8.4.0 => 8.5.0
$bpk-panel-border-color token valuebpk-mixins: 31.3.0 => 31.4.0
bpk-panel mixinChanged:
@skyscanner/bpk-foundations-web: 8.3.0 => 8.4.0
$bpk-card-color token valuebpk-mixins: 31.2.0 => 31.3.0
bpk-card mixinbpk-blockquote mixin. Text colour will be inherited from the base stylesheet.bpk-blockquote mixin.Added
strong badge theme has been added, which aligns to our APP implementations and better meets the needs of users.Changed:
@skyscanner/bpk-foundations-android: 3.6.1 => 3.7.0
@skyscanner/bpk-foundations-common: 2.5.1 => 2.6.0
@skyscanner/bpk-foundations-ios: 2.6.1 => 2.7.0
@skyscanner/bpk-foundations-react-native: 1.5.1 => 1.6.0
Marcomms appended to it, for strict guidence on when to be utilised.bpk-mixins: 31.1.6 => 31.2.0
bpk-caption to use the caption styles.Fixed
@skyscanner/bpk-svgs: 14.3.2 => 14.3.3
- center-location icon was wrongfully added as centre-location@skyscanner/bpk-foundations-android: 3.6.0 => 3.6.1
@skyscanner/bpk-foundations-common: 2.5.0 => 2.5.1
@skyscanner/bpk-foundations-ios: 2.6.0 => 2.6.1
@skyscanner/bpk-foundations-react-native: 1.5.0 => 1.5.1
@skyscanner/bpk-foundations-web: 8.2.0 => 8.2.1
SCRIM base colour to BLACK_ALPHA_70 which causes clash with semantic Scrim token at generation.Added:
@skyscanner/bpk-foundations-android: 3.5.1 => 3.6.0
@skyscanner/bpk-foundations-common: 2.4.1 => 2.5.0
@skyscanner/bpk-foundations-ios: 2.5.1 => 2.6.0
@skyscanner/bpk-foundations-react-native: 1.4.1 => 1.5.0
@skyscanner/bpk-foundations-web: 8.1.1 => 8.2.0
TEXT_DISABLED_DAY & TEXT_DISABLED_NIGHT colours to correct coloursFixed:
@skyscanner/bpk-foundations-common: 2.4.0 => 2.4.1
@skyscanner/bpk-foundations-android: 3.5.0 => 3.5.1
@skyscanner/bpk-foundations-ios: 2.5.0 => 2.5.1
@skyscanner/bpk-foundations-react-native: 1.4.0 => 1.4.1
@skyscanner/bpk-foundations-web: 8.1.0 => 8.1.1
NIGHT_GREY_25.Added:
@skyscanner/bpk-svgs: 14.2.0 => 14.3.0
- Updated account-circle icons 16px and 24px.
- Updated menu icons 16px and 24px.
- Updated search icons 16px and 24px.
- Updated face-id icon 24px.
- Updated fingerprint icon 24px.
- Added centre-location icons 16px and 24px.
- Added face-id icon 16px.
- Added fingerprint icon 16px. @skyscanner/bpk-foundations-android: 3.4.0 => 3.5.0
@skyscanner/bpk-foundations-ios: 2.4.0 => 2.5.0
@skyscanner/bpk-foundations-react-native: 1.3.0 => 1.4.0
- Added new dynamic colours for using in apps for Light and Dark modeAdded:
@skyscanner/bpk-foundations-common: 2.3.0 => 2.4.0
@skyscanner/bpk-foundations-android: 3.3.0 => 3.4.0
@skyscanner/bpk-foundations-ios: 2.3.0 => 2.4.0
@skyscanner/bpk-foundations-react-native: 1.2.2 => 1.3.0
@skyscanner/bpk-foundations-web: 8.0.0 => 8.1.0
Eco Green, Night Sky, Night Yellow Fill and Night Pink Fill, as these are new colours and don't have an old palette mapping.bpk-mixins: 31.1.1 => 31.1.2
bpk-stylesheets: 7.1.35 => 7.1.36
@skyscanner/bpk-svgs: 14.1.9 => 14.2.0
@skyscanner/bpk-foundations-web dependency based on the above new version.Fixed:
bpk-button--link.Added:
bpk-breakpoint-small-tabletBreaking:
bpk-foundations-web: 7.0.0 => 8.0.0
$bpk-breakpoint-mobile, breakpointMobile$bpk-breakpoint-tablet, breakpointTablet$bpk-breakpoint-desktop, breakpointDesktop$bpk-breakpoint-query-above-mobile, breakpointQueryAboveMobile$bpk-breakpoint-query-above-tablet, breakpointQueryAboveTablet$bpk-breakpoint-query-above-desktop, breakpointQueryAboveDesktop$bpk-breakpoint-query-mobile, breakpointQueryMobile$bpk-breakpoint-query-tablet, breakpointQueryTablet$bpk-breakpoint-query-tablet-only, breakpointQueryTabletOnly$bpk-modal-max-width, modalMaxWidth$bpk-modal-wide-max-width, modalWideMaxWidthbpk-mixins: 30.0.0 => 31.0.0
bpk-breakpoint-mobilebpk-breakpoint-tabletbpk-breakpoint-tablet-onlybpk-breakpoint-above-mobilebpk-breakpoint-above-tabletAdded:
bpk-foundations-web: 7.0.0 => 8.0.0
Added new breakpoint tokens:
$bpk-breakpoint-small-mobile, breakpointSmallMobile$bpk-breakpoint-small-tablet, breakpointSmallTablet$bpk-breakpoint-query-small-mobile, breakpointQuerySmallMobile$bpk-breakpoint-query-small-tablet, breakpointQuerySmallTablet$bpk-breakpoint-query-small-tablet-only, breakpointQuerySmallTabletOnlyAdded new breakpoint margin tokens that should be used as a white space on the left-and-right of the screen:
$bpk-breakpoint-small-mobile-margin, breakpointSmallMobileMargin$bpk-breakpoint-mobile-margin, breakpointMobileMargin$bpk-breakpoint-small-tablet-margin, breakpointSmallTabletMargin$bpk-breakpoint-tablet-margin, breakpointTabletMargin$bpk-breakpoint-desktop-margin, breakpointDesktopMarginbpk-mixins: 30.0.0 => 31.0.0
bpk-breakpoint-small-mobilebpk-breakpoint-small-tablet-onlyBreaking:
bpk-foundations-web: 6.2.0 => 7.0.0
$bpk-list-item-margin-bottom, listItemMarginBottom: 0 to 0.25rem$bpk-list-margin-bottom, listMarginBottom: 0.75rem to 1rem$bpk-list-margin-top, listMarginTop: 0 to 1rembpk-mixins: 29.0.0 => 30.0.0
bpk-list-item mixin - added bottom marginbpk-list--nested mixin - added top and bottom paddingbpk-list mixin - added top margin and changed bottom marginBreaking:
typography styles that were applied when on mobile devices to keep the same style as when on desktop.Added:
bpk-label-3 typography mixin.Added:
@skyscanner/bpk-foundations-web: 6.1.1 => 6.2.0
BpkButtonSecondaryOnDark and BpkButtonLinkOnDark buttons:BpkButtonSecondaryOnDark: $bpk-button-secondary-on-dark-background-color $bpk-button-secondary-on-dark-active-background-color $bpk-button-secondary-on-dark-hover-background-color $bpk-button-secondary-on-dark-disabled-background-color $bpk-button-secondary-on-dark-background-image $bpk-button-secondary-on-dark-active-background-image $bpk-button-secondary-on-dark-hover-background-image $bpk-button-secondary-on-dark-disabled-background-image $bpk-button-secondary-on-dark-color $bpk-button-secondary-on-dark-active-color $bpk-button-secondary-on-dark-hover-color $bpk-button-secondary-on-dark-disabled-color BpkButtonLinkOnDark: $bpk-button-link-on-dark-color $bpk-button-link-on-dark-active-color $bpk-button-link-on-dark-hover-color $bpk-button-link-on-dark-disabled-color bpk-mixins: 28.1.1 => 28.2.0
BpkButtonSecondaryOnDark and BpkButtonLinkonDark buttons: bpk-button--secondary-on-dark, bpk-button--link-on-darkFixed:
BpkButtonLink in hover and active state in bpk-button--linkAdded:
@skyscanner/bpk-foundations-commons: 2.2.1 => 2.3.0
@skyscanner/bpk-foundations-ios: 2.2.1 => 2.3.0
@skyscanner/bpk-foundations-android: 3.2.1 => 3.3.0
Added:
@skyscanner/bpk-foundations-web: 6.0.0 => 6.1.0
BpkButtonPrimaryOnDark and BpkButtonPrimaryOnLight buttons:$bpk-button-{button-type}-background-color $bpk-button-{button-type}-{button-state}-background-color primary-on-dark, primary-on-light and button-state is one of active, disabled, hover$bpk-button-{button-type}-background-image $bpk-button-{button-type}-{button-state}-background-image primary-on-dark, primary-on-light and button-state is one of active, disabled, hover$bpk-button-{button-type}-color $bpk-button-{button-type}-{button-state}-color primary-on-dark, primary-on-light and button-state is one of active, disabled, hoverbpk-mixins: 28.0.0 => 28.1.0
BpkButtonPrimaryOnDark and BpkButtonPrimaryOnLight buttons: bpk-button--primary-on-dark, bpk-button--primary-on-lightChanged:
@skyscanner/bpk-foundations-web: 6.0.0 => 6.1.0
$bpk-button-{button-type}-border-color $bpk-button-{button-type}-hover-border-color $bpk-button-{button-type}-active-border-color secondary, destructive. Buttons should no longer have borders$bpk-button-outline-*. Use one of the equivalent $bpk-button-primary-on-dark-* or $bpk-button-primary-on-light-* tokens insteadbpk-mixins: 28.0.0 => 28.1.0
bpk-button--outline mixin. Use instead one of bpk-button--primary-on-dark, bpk-button--primary-on-light mixins insteadFixed:
Breaking:
bpk-button--link mixin. If applying this mixin to a button, it will increase in height so needs to be check it does not alter layoutbpk-button--padded mixin is deleted as link buttons come by default with paddingBreaking:
@skyscanner/bpk-foundations-web: 5.3.0 => 6.0.0
$bpk-button-border-radius changed to .5rem$bpk-button-large-line-height and buttonLargeLineHeight which is used to align text and icons in buttons is changed to match the new heading-4 style of large buttonsbpk-mixins: 26.1.1 => 27.0.0
bpk-button:36px. This may cause some buttons to appear larger in height..375rem to .5rembpk-button--secondary:bpk-button--destructive:bpk-button--large:48px. This may cause some buttons to appear larger in height..375rem to .5rem24px to 16px. This will cause large buttons to appear smaller in width.heading-4. This will cause the text to appear smaller.bpk-button--icon-only:50% to .5rem. This changes the shape of icon-only buttons from round to more square-shaped.Changed:
box-shadow tokensChanged:
@skyscanner/bpk-foundations-web: 5.2.0 => 5.3.0
The following Sass tokens are deprecated:
$bpk-text-{size}-font-size, $bpk-text-{size}-font-weight, $bpk-text-{size}-line-height, $bpk-text-{size}-letter-spacing, where size is one of: xs, sm, base, lg, xl, xxl, xxxl, xxxxl, xxxxxl.$bpk-h-{size}-font-size, $bpk-h-{size}-font-weight, $bpk-h-{size}-line-height, where size is one of: 1, 2, 3, 4, 5, 6.
To migrate, use the BpkText component or a backpack mixin instead. See below for an example.
/* Old */
.my-class {
font-size: $bpk-text-xs-font-size;
line-height: $bpk-text-xs-line-height;
font-weight: $bpk-text-xs-font-weight;
letter-spacing: $bpk-text-xs-letter-spacing;
}
/* New */
.my-class {
@include bpk-caption;
}The following JS tokens are deprecated:
text{size}FontSize, text{size}FontWeight, text{size}LineHeight, text{size}LetterSpacing, where size is one of: Xs, Sm, Base, Lg, Xl, Xxl, Xxxl, Xxxxl, Xxxxxl.h{size}FontSize, h{size}FontWeight, h{size}LineHeight, where size is one of: 1, 2, 3, 4, 5, 6.
To migrate, use one of the equivalent tokens as follows:
text{size}FontSize => fontSize{size}text{size}LineHeight => lineHeight{size}text{size}FontWeight => fontWeightBook
where size is one of: Xs, Sm, Base, Lg, Xl, Xxl, Xxxl, Xxxxl, Xxxxxl.
Added:
@skyscanner/bpk-foundations-web: 5.1.1 => 5.2.0
bpk-spacing-xxxl()bpk-spacing-xxxxl()Fixed:
@skyscanner/bpk-foundations-common: 2.2.0 => 2.2.1
@skyscanner/bpk-foundations-ios: 2.2.0 => 2.2.1
@skyscanner/bpk-foundations-android: 3.2.0 => 3.2.1
Added:
@skyscanner/bpk-foundations-commons: 2.1.0 => 2.2.0
@skyscanner/bpk-foundations-ios: 2.1.0 => 2.2.0
@skyscanner/bpk-foundations-android: 3.1.1 => 3.2.0
Fixed:
Fixed:
Added:
Breaking:
font-size tokens to use the new typography sizes.font-size-xxl, h-2-font-size, text-xxl-font-size has changed from 1.875rem to 2rem.font-size-xxxl, text-xxxl-font-size has changed from 2.25rem to 2.5rem.font-size-xxxxl, h-1-font-size, text-xxxxl-font-size has changed from 2.625rem to 3rem.font-size-xxxxxl, text-xxxxxl-font-size has changed from 3.75rem to 4rem.line-height tokens to use the new typography sizes.line-height-sm, text-sm-line-height has changed from 1.125rem to 1.25rem.line-height-base, h-4-line-height, text-base-line-height has changed from 1.25rem to 1.5rem.line-height-lg, text-lg-line-height has changed from 1.625rem to 1.75rem.line-height-xl, h-3-line-height, text-xl-line-height has changed from 1.9375rem to 2rem.line-height-xxl, h-2-line-height, text-xxl-line-height has changed from 2.4375rem to 2.5rem.line-height-xxxl, h-1-line-height, text-xxxl-line-height has changed from 2.9375rem to 3rem.line-height-xxxxl, text-xxxxl-line-height has changed from 3.4375rem to 3.5rem.line-height-xxxxxl, text-xxxxxl-line-height has changed from 4.875rem to 4.5rem. Added:
Breaking:
@skyscanner/bpk-foundations-common:
@skyscanner/bpk-foundations-ios:
@skyscanner/bpk-foundations-android:
Changed:
Patch:
spacing-v2 tokens for use in the docsite.Patched:
CALENDAR_DAY_SPACING to 8px to align with updated calendar sizes.Changed:
bpk-input-padding-x token from 1rem to 0.5rem.Changed:
bpk-calendar-day-spacing token to use the new spacing grid.bpk-calendar-day-color token colour.Fixed:
TEXT_SECONDARY_DARK_COLOR to SKY_GRAY_TINT_04Fixed:
bpk-badge-padding-x and bpk-badge-padding-y tokens to use the new spacing grid.Changed:
TEXT_SECONDARY_DARK_COLOR token value is now SKY_GRAY_TINT_04.Changed:
$bpk-banner-alert-header-padding-x and $bpk-banner-alert-header-padding-y tokens are now deprecated. To migrate, use equivalent spacing values.Breaking:
Fixed:
Added:
Breaking:
bpk-modal-content-padding token to use the new spacing grid.Fixed:
Breaking:
bpk-card-padding token to use the new spacing grid.Changed:
bpk-textarea-min-height token is now deprecated. To migrate, use an equivalent spacing value.Changed:
Breaking:
Changed:
bpk-modal-header-padding token is now deprecated. To migrate, use an equivalent spacing value.@skyscanner/bpk-foundations-web: 1.1.0 => 1.2.0 Added:
Add breakpoint-query-above-desktop
Changed:
bpk-rating-base-widthbpk-rating-base-heightbpk-rating-sm-widthbpk-rating-sm-heightbpk-rating-lg-widthbpk-rating-lg-heightBreaking:
Added:
text-icon-spacing token. This is the spacing that should be placed between icons and text.Changed:
@skyscanner/bpk-foundations-web: 1.0.0 => 1.1.0
The following button tokens are now deprecated. To migrate, use an equivalent spacing value.
$button-padding-x$button-padding-y$button-padding-x-icon-only$button-icon-border-radius$button-icon-border-radius-lg$button-large-padding-x$button-large-padding-y$button-large-padding-x-icon-onlyThe following select tokens are now deprecated. To migrate, use an equivalent spacing value.
$bpk-select-height$bpk-select-padding-top$bpk-select-padding-right$bpk-select-padding-bottom$bpk-select-padding-leftFixed:
Renamed packages to avoid confusion with what they are and their contents.
@skyscanner/bpk-svgs updatesFixed:
bpk-svgsAdded:
@skyscanner/bpk-webFixed:
Inital release of new foundation libraries: