@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.
- package/bpk-component-overlay/README.md +2 -2
- package/bpk-component-overlay/src/BpkOverlay.js +2 -2
- package/bpk-component-page-indicator/README.md +11 -11
- package/bpk-component-pagination/src/BpkPaginationList.module.scss +1 -0
- package/bpk-component-pagination/src/BpkPaginationNudger.module.scss +4 -1
- package/package.json +1 -1
|
@@ -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 |
|
|
51
|
-
| overlayLevel | oneOf(OVERLAY_LEVELS) | false |
|
|
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:
|
|
106
|
-
overlayLevel:
|
|
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
|
|
32
|
-
|
|
33
|
-
| currentIndex | number
|
|
34
|
-
| totalIndicators | number
|
|
35
|
-
| indicatorLabel | string
|
|
36
|
-
| prevNavLabel | string
|
|
37
|
-
| nextNavLabel | string
|
|
38
|
-
| className | string
|
|
39
|
-
| showNav | bool
|
|
40
|
-
| variant | oneOf(VARIANT) | false | VARIANT.default |
|
|
41
|
-
| onClick | func
|
|
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
|
|
|
@@ -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
|
}
|