@skyscanner/backpack-web 16.1.0 → 16.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -47,5 +47,5 @@ export default () => (
47
47
  | borderRadiusStyle (deprecated) | BORDER_RADIUS_STYLES | false | BORDER_RADIUS_STYLES.none |
48
48
  | className | string | false | null |
49
49
  | foregroundContent | Node | false | null |
50
- | overlayType | oneOf(OVERLAY_TYPES) | false | null |
51
- | overlayLevel | oneOf(OVERLAY_LEVELS) | false | null |
50
+ | overlayType | oneOf(OVERLAY_TYPES) | false | OVERLAY_TYPES.solid |
51
+ | overlayLevel | oneOf(OVERLAY_LEVELS) | false | OVERLAY_LEVELS.low |
@@ -102,8 +102,8 @@ BpkOverlay.defaultProps = {
102
102
  borderRadiusStyle: null,
103
103
  className: null,
104
104
  foregroundContent: null,
105
- overlayType: null,
106
- overlayLevel: null,
105
+ overlayType: OVERLAY_TYPES.solid,
106
+ overlayLevel: OVERLAY_LEVELS.low,
107
107
  };
108
108
 
109
109
  export default BpkOverlay;
@@ -28,15 +28,15 @@ export default () =>
28
28
 
29
29
  ## Props
30
30
 
31
- | Property | PropType | Required | Default Value |
32
- |-----------------|----------------|----------|-----------------|
33
- | currentIndex | number | true | - |
34
- | totalIndicators | number | true | - |
35
- | indicatorLabel | string | true | - |
36
- | prevNavLabel | string | true | - |
37
- | nextNavLabel | string | true | - |
38
- | className | string | false | null |
39
- | showNav | bool | false | false |
40
- | variant | oneOf(VARIANT) | false | VARIANT.default |
41
- | onClick | func | false | null |
31
+ | Property | PropType | Required | Default Value |
32
+ |-----------------|-------------------------------------------|----------|-----------------|
33
+ | currentIndex | number | true | - |
34
+ | totalIndicators | number | true | - |
35
+ | indicatorLabel | string | true | - |
36
+ | prevNavLabel | string | true | - |
37
+ | nextNavLabel | string | true | - |
38
+ | className | string | false | null |
39
+ | showNav | bool | false | false |
40
+ | variant | oneOf(VARIANT.default, VARIANT.overImage) | false | VARIANT.default |
41
+ | onClick | func | false | null |
42
42
 
@@ -24,6 +24,7 @@ $bpk-spacing-v2: true;
24
24
  display: flex;
25
25
  margin: 0;
26
26
  padding: 0;
27
+ align-items: baseline;
27
28
  list-style: none;
28
29
 
29
30
  &__item {
@@ -26,7 +26,6 @@ $bpk-spacing-v2: true;
26
26
 
27
27
  &__button {
28
28
  height: $bpk-button-height;
29
- padding: 0 bpk-spacing-md();
30
29
  border: none;
31
30
  background: none;
32
31
  cursor: pointer;
@@ -34,6 +33,10 @@ $bpk-spacing-v2: true;
34
33
 
35
34
  @include bpk-button--link;
36
35
 
36
+ // Using stylelint-disable as we need to override padding provided by bpk-button--link otherwise it shifts the arrow buttons out of alignment.
37
+ /* stylelint-disable-next-line order/properties-order, order/order */
38
+ padding: 0;
39
+
37
40
  &:disabled {
38
41
  cursor: not-allowed;
39
42
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skyscanner/backpack-web",
3
- "version": "16.1.0",
3
+ "version": "16.2.0",
4
4
  "description": "Backpack Design System web library",
5
5
  "repository": {
6
6
  "type": "git",