Skip to content

Commit

Permalink
[KOA-4848] Update padding in input and textarea components (Skyscanne…
Browse files Browse the repository at this point in the history
…r#2309)

* update padding in input and textarea components

* add large property to textarea component

* change failure threshold

* refactor code

Co-authored-by: Ana Belciug <[email protected]>
  • Loading branch information
anambl and Ana Belciug authored Dec 9, 2021
1 parent 164e9b6 commit ce955d6
Show file tree
Hide file tree
Showing 51 changed files with 146 additions and 63 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions UNRELEASED.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,13 @@
- bpk-component-autosuggest:
- Updated component to use new spacing sizes.

- bpk-component-input:
- bpk-component-textarea:
- Updated padding horizontally in input and textarea components.

- bpk-component-badge:
- Fixed a misalignment of height of the badge when an icon variant is being used.

**Added:**
- bpk-component-textarea:
- Add new property `large` (optional) in textarea component with larger default height.
2 changes: 1 addition & 1 deletion packages/bpk-animate-height/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"react": "^16.3.0"
},
"devDependencies": {
"@skyscanner/bpk-foundations-web": "^4.2.0",
"@skyscanner/bpk-foundations-web": "^4.3.0",
"bpk-component-button": "^5.0.17"
}
}
2 changes: 1 addition & 1 deletion packages/bpk-component-accordion/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"react": "^16.3.0"
},
"devDependencies": {
"@skyscanner/bpk-foundations-web": "^4.2.0",
"@skyscanner/bpk-foundations-web": "^4.3.0",
"bpk-component-checkbox": "^3.0.20"
}
}
2 changes: 1 addition & 1 deletion packages/bpk-component-badge/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"react": "^16.3.0"
},
"devDependencies": {
"@skyscanner/bpk-foundations-web": "^4.2.0",
"@skyscanner/bpk-foundations-web": "^4.3.0",
"bpk-component-icon": "^9.1.4",
"bpk-storybook-utils": "^1.0.18"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/bpk-component-banner-alert/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
},
"gitHead": "4e4ec9add28e1db54d6a38a10c331bbd163f2926",
"dependencies": {
"@skyscanner/bpk-foundations-web": "^4.2.0",
"@skyscanner/bpk-foundations-web": "^4.3.0",
"bpk-animate-height": "^4.0.18",
"bpk-component-close-button": "^3.0.20",
"bpk-component-icon": "^9.1.4",
Expand Down
2 changes: 1 addition & 1 deletion packages/bpk-component-barchart/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
},
"gitHead": "f9f94f86d7cfc75e43bc6ad5eb01b23e62a89cc8",
"dependencies": {
"@skyscanner/bpk-foundations-web": "^4.2.0",
"@skyscanner/bpk-foundations-web": "^4.3.0",
"bpk-component-mobile-scroll-container": "^3.0.19",
"bpk-mixins": "^24.0.6",
"bpk-react-utils": "^4.0.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/bpk-component-breakpoint/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@
"react": "^16.3.0"
},
"devDependencies": {
"@skyscanner/bpk-foundations-web": "^4.2.0"
"@skyscanner/bpk-foundations-web": "^4.3.0"
}
}
2 changes: 1 addition & 1 deletion packages/bpk-component-calendar/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
},
"gitHead": "4e4ec9add28e1db54d6a38a10c331bbd163f2926",
"dependencies": {
"@skyscanner/bpk-foundations-web": "^4.2.0",
"@skyscanner/bpk-foundations-web": "^4.3.0",
"bpk-component-aria-live": "^2.0.31",
"bpk-component-icon": "^9.1.4",
"bpk-component-select": "^5.0.14",
Expand Down
2 changes: 1 addition & 1 deletion packages/bpk-component-checkbox/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"react": "^16.3.0"
},
"devDependencies": {
"@skyscanner/bpk-foundations-web": "^4.2.0",
"@skyscanner/bpk-foundations-web": "^4.3.0",
"bpk-storybook-utils": "^1.0.18"
}
}
2 changes: 1 addition & 1 deletion packages/bpk-component-datatable/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@
"react": "^16.3.0"
},
"devDependencies": {
"@skyscanner/bpk-foundations-web": "^4.2.0"
"@skyscanner/bpk-foundations-web": "^4.3.0"
}
}
2 changes: 1 addition & 1 deletion packages/bpk-component-datepicker/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"react": "^16.3.0"
},
"devDependencies": {
"@skyscanner/bpk-foundations-web": "^4.2.0",
"@skyscanner/bpk-foundations-web": "^4.3.0",
"bpk-storybook-utils": "^1.0.18"
}
}
2 changes: 1 addition & 1 deletion packages/bpk-component-drawer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
},
"gitHead": "f9f94f86d7cfc75e43bc6ad5eb01b23e62a89cc8",
"dependencies": {
"@skyscanner/bpk-foundations-web": "^4.2.0",
"@skyscanner/bpk-foundations-web": "^4.3.0",
"bpk-component-close-button": "^3.0.20",
"bpk-component-icon": "^9.1.4",
"bpk-component-link": "^3.0.18",
Expand Down
2 changes: 1 addition & 1 deletion packages/bpk-component-form-validation/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"react": "^16.3.0"
},
"devDependencies": {
"@skyscanner/bpk-foundations-web": "^4.2.0",
"@skyscanner/bpk-foundations-web": "^4.3.0",
"bpk-component-button": "^5.0.17",
"bpk-component-checkbox": "^3.0.20",
"bpk-component-icon": "^9.1.4",
Expand Down
2 changes: 1 addition & 1 deletion packages/bpk-component-horizontal-nav/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"react": "^16.3.0"
},
"devDependencies": {
"@skyscanner/bpk-foundations-web": "^4.2.0",
"@skyscanner/bpk-foundations-web": "^4.3.0",
"bpk-component-text": "^4.0.20",
"bpk-storybook-utils": "^1.0.18"
}
Expand Down
4 changes: 2 additions & 2 deletions packages/bpk-component-icon/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
},
"gitHead": "f9f94f86d7cfc75e43bc6ad5eb01b23e62a89cc8",
"dependencies": {
"@skyscanner/bpk-foundations-web": "^4.2.0",
"@skyscanner/bpk-svgs": "^14.0.13",
"@skyscanner/bpk-foundations-web": "^4.3.0",
"@skyscanner/bpk-svgs": "^14.0.14",
"bpk-mixins": "^24.0.6",
"bpk-react-utils": "^4.0.1",
"prop-types": "^15.7.2"
Expand Down
2 changes: 1 addition & 1 deletion packages/bpk-component-image/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"react": "^16.3.0"
},
"devDependencies": {
"@skyscanner/bpk-foundations-web": "^4.2.0",
"@skyscanner/bpk-foundations-web": "^4.3.0",
"bpk-component-mobile-scroll-container": "^3.0.19",
"bpk-component-text": "^4.0.20"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/bpk-component-input/examples.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
@keyframes bpk-keyframe-spin{100%{transform:rotate(1turn)}}.bpk-forms__viewport-alert{display:none}@media (max-width: 50.25rem){.bpk-forms__viewport-alert{display:block}}.bpk-forms__form{margin-bottom:.75rem}@media (max-width: 50.25rem){.bpk-forms__form--desktop-only{display:none}}.bpk-forms__place{display:inline-block;width:32%;vertical-align:bottom}.bpk-forms__date{display:inline-block;width:18%;vertical-align:bottom}.bpk-forms__hotels-destination{display:inline-block;width:48%;vertical-align:bottom}
@keyframes bpk-keyframe-spin{100%{transform:rotate(1turn)}}.bpk-forms__viewport-alert{display:none}@media (max-width: 50.25rem){.bpk-forms__viewport-alert{display:block}}.bpk-forms__form{margin-bottom:0.5rem}@media (max-width: 50.25rem){.bpk-forms__form--desktop-only{display:none}}.bpk-forms__place{display:inline-block;width:32%;vertical-align:bottom}.bpk-forms__date{display:inline-block;width:18%;vertical-align:bottom}.bpk-forms__hotels-destination{display:inline-block;width:48%;vertical-align:bottom}
2 changes: 1 addition & 1 deletion packages/bpk-component-input/examples.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
}

&__form {
margin-bottom: $bpk-spacing-sm;
margin-bottom: bpk-spacing-md();

&--desktop-only {
@include bpk-breakpoint-tablet {
Expand Down
2 changes: 1 addition & 1 deletion packages/bpk-component-input/src/BpkInput.module.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 6 additions & 4 deletions packages/bpk-component-input/src/BpkInput.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@

@import '~bpk-mixins/index';

$bpk-spacing-v2: true;

.bpk-input {
@include bpk-input;

Expand All @@ -43,10 +45,6 @@
@include bpk-input--invalid;
}

&--large {
@include bpk-input--large;
}

&--clearable {
@include bpk-input--clearable;

Expand All @@ -56,6 +54,10 @@
}
}

&--large {
@include bpk-input--large;
}

// When persistent, set background to override any validity icons
// appearing and make the clear button always display.
&--persistent-clearable {
Expand Down
2 changes: 1 addition & 1 deletion packages/bpk-component-link/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"react": "^16.3.0"
},
"devDependencies": {
"@skyscanner/bpk-foundations-web": "^4.2.0",
"@skyscanner/bpk-foundations-web": "^4.3.0",
"bpk-storybook-utils": "^1.0.18"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@
"react": "^16.3.0"
},
"devDependencies": {
"@skyscanner/bpk-foundations-web": "^4.2.0"
"@skyscanner/bpk-foundations-web": "^4.3.0"
}
}
2 changes: 1 addition & 1 deletion packages/bpk-component-navigation-bar/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"react": "^16.3.0"
},
"devDependencies": {
"@skyscanner/bpk-foundations-web": "^4.2.0",
"@skyscanner/bpk-foundations-web": "^4.3.0",
"bpk-component-icon": "^9.1.4",
"bpk-storybook-utils": "^1.0.18"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/bpk-component-navigation-stack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
},
"gitHead": "f9f94f86d7cfc75e43bc6ad5eb01b23e62a89cc8",
"dependencies": {
"@skyscanner/bpk-foundations-web": "^4.2.0",
"@skyscanner/bpk-foundations-web": "^4.3.0",
"bpk-mixins": "^24.0.6",
"bpk-react-utils": "^4.0.1",
"prop-types": "^15.7.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/bpk-component-nudger/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
},
"gitHead": "f9f94f86d7cfc75e43bc6ad5eb01b23e62a89cc8",
"dependencies": {
"@skyscanner/bpk-foundations-web": "^4.2.0",
"@skyscanner/bpk-foundations-web": "^4.3.0",
"bpk-component-button": "^5.0.17",
"bpk-component-icon": "^9.1.4",
"bpk-mixins": "^24.0.6",
Expand Down
2 changes: 1 addition & 1 deletion packages/bpk-component-phone-input/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
},
"gitHead": "f9f94f86d7cfc75e43bc6ad5eb01b23e62a89cc8",
"dependencies": {
"@skyscanner/bpk-foundations-web": "^4.2.0",
"@skyscanner/bpk-foundations-web": "^4.3.0",
"bpk-component-input": "^6.0.30",
"bpk-component-label": "^5.0.18",
"bpk-component-select": "^5.0.14",
Expand Down
2 changes: 1 addition & 1 deletion packages/bpk-component-progress/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
},
"gitHead": "5c156b97cb0ba5e75851d3c763334578714c895e",
"dependencies": {
"@skyscanner/bpk-foundations-web": "^4.2.0",
"@skyscanner/bpk-foundations-web": "^4.3.0",
"bpk-mixins": "^24.0.6",
"bpk-react-utils": "^4.0.1",
"lodash.clamp": "^4.0.3",
Expand Down
2 changes: 1 addition & 1 deletion packages/bpk-component-radio/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"react": "^16.3.0"
},
"devDependencies": {
"@skyscanner/bpk-foundations-web": "^4.2.0",
"@skyscanner/bpk-foundations-web": "^4.3.0",
"bpk-storybook-utils": "^1.0.18"
}
}
2 changes: 1 addition & 1 deletion packages/bpk-component-rating/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"react": "^16.3.0"
},
"devDependencies": {
"@skyscanner/bpk-foundations-web": "^4.2.0",
"@skyscanner/bpk-foundations-web": "^4.3.0",
"bpk-component-text": "^4.0.20"
}
}
2 changes: 1 addition & 1 deletion packages/bpk-component-scrollable-calendar/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
},
"gitHead": "4e4ec9add28e1db54d6a38a10c331bbd163f2926",
"dependencies": {
"@skyscanner/bpk-foundations-web": "^4.2.0",
"@skyscanner/bpk-foundations-web": "^4.3.0",
"bpk-component-calendar": "^11.0.0",
"bpk-component-text": "^4.0.20",
"bpk-mixins": "^24.0.6",
Expand Down
2 changes: 1 addition & 1 deletion packages/bpk-component-section-list/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
},
"gitHead": "f9f94f86d7cfc75e43bc6ad5eb01b23e62a89cc8",
"dependencies": {
"@skyscanner/bpk-foundations-web": "^4.2.0",
"@skyscanner/bpk-foundations-web": "^4.3.0",
"bpk-component-icon": "^9.1.4",
"bpk-component-text": "^4.0.20",
"bpk-mixins": "^24.0.6",
Expand Down
Loading

0 comments on commit ce955d6

Please sign in to comment.