Align text sizing in filter blocks: chips, checkboxes, buttons, dropdown (https://github.com/woocommerce/woocommerce-blocks/pull/7707)
* Align the font-size of checkbox-control component to the price slider amount * Align the font-size of Price Slider Button to the price slider amount * Align the font-size of Filter Reset Button to the price slider amount * Align the font-size of Clear All Button to the price slider amount * Align the font-size of Apply button in Editor to the price slider amount * Align the font-size of Apply button in Frontend to the price slider amount * Align the font-size of Price Slider Amount to the standard size * Align the font-size of Active Filter chips to the price slider amount * Align the font-size of Filter by Price (text) to the price slider amount * Align the font-size of Filter by Attribute (dropdown) to the price slider amount * Align the font-size of placeholder of Filter by Attribute (dropdown) to the price slider amount * Change font-size for text in filters from font-size(smaller) to font-size(smaller) As a result of discussion in PR it was agreed to check the styles with bigger font size hence the change * Align the font-size of input text of Filter by Attribute (dropdown) to the price slider amount * Change margin-right of checkbox-control to relative value so it better adapts to the fonts
This commit is contained in:
parent
181838bfdf
commit
796e952b92
|
@ -32,6 +32,7 @@
|
||||||
}
|
}
|
||||||
.wc-block-components-chip__text {
|
.wc-block-components-chip__text {
|
||||||
flex-grow: 1;
|
flex-grow: 1;
|
||||||
|
@include font-size(small);
|
||||||
}
|
}
|
||||||
&.is-removable .wc-block-components-chip__text {
|
&.is-removable .wc-block-components-chip__text {
|
||||||
padding-right: 0.5em;
|
padding-right: 0.5em;
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
.wc-block-components-filter-reset-button {
|
.wc-block-components-filter-reset-button {
|
||||||
@include filter-link-button();
|
@include filter-link-button();
|
||||||
|
@include font-size(small);
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
|
||||||
&[disabled] {
|
&[disabled] {
|
||||||
|
|
|
@ -128,6 +128,7 @@
|
||||||
max-width: 80px;
|
max-width: 80px;
|
||||||
min-width: 0;
|
min-width: 0;
|
||||||
padding: $gap-smaller;
|
padding: $gap-smaller;
|
||||||
|
@include font-size(small);
|
||||||
.wc-block-components-price-slider--is-input-inline & {
|
.wc-block-components-price-slider--is-input-inline & {
|
||||||
max-width: 60px;
|
max-width: 60px;
|
||||||
}
|
}
|
||||||
|
@ -144,6 +145,10 @@
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
margin: $gap-large 0;
|
margin: $gap-large 0;
|
||||||
|
|
||||||
|
.wc-block-components-formatted-money-amount {
|
||||||
|
@include font-size(small);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.wc-block-components-price-slider__actions {
|
.wc-block-components-price-slider__actions {
|
||||||
|
@ -155,6 +160,7 @@
|
||||||
button[type="submit"]:not(.wp-block-search__button).wc-block-components-filter-submit-button {
|
button[type="submit"]:not(.wp-block-search__button).wc-block-components-filter-submit-button {
|
||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
margin-left: 0;
|
margin-left: 0;
|
||||||
|
@include font-size(small);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -21,6 +21,7 @@
|
||||||
|
|
||||||
.wc-block-active-filters__clear-all {
|
.wc-block-active-filters__clear-all {
|
||||||
@include filter-link-button();
|
@include filter-link-button();
|
||||||
|
@include font-size(small);
|
||||||
border: none;
|
border: none;
|
||||||
margin-top: 15px;
|
margin-top: 15px;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
|
@ -142,6 +143,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.wc-block-active-filters__list-item-name {
|
.wc-block-active-filters__list-item-name {
|
||||||
|
@include font-size(small);
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
|
@ -79,11 +79,16 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.wc-blocks-components-form-token-field-wrapper .components-form-token-field__input-container {
|
.wc-blocks-components-form-token-field-wrapper .components-form-token-field__input-container {
|
||||||
|
@include reset-typography();
|
||||||
border: 0;
|
border: 0;
|
||||||
padding: $gap-smaller;
|
padding: $gap-smaller;
|
||||||
|
|
||||||
.components-form-token-field__input::placeholder {
|
.components-form-token-field__input {
|
||||||
color: $black;
|
@include font-size(small);
|
||||||
|
|
||||||
|
&::placeholder {
|
||||||
|
color: $black;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.components-form-token-field__suggestions-list {
|
.components-form-token-field__suggestions-list {
|
||||||
|
@ -100,6 +105,11 @@
|
||||||
padding: $gap-small;
|
padding: $gap-small;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.components-form-token-field__token,
|
||||||
|
.components-form-token-field__suggestion {
|
||||||
|
@include font-size(small);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -143,8 +153,10 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// The specificity here is needed to overwrite the margin-top that is inherited on WC block template pages such as Shop.
|
||||||
.wc-block-filter-submit-button.wc-block-components-filter-submit-button.wc-block-attribute-filter__button {
|
.wc-block-filter-submit-button.wc-block-components-filter-submit-button.wc-block-attribute-filter__button {
|
||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
|
@include font-size(small);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -191,6 +203,5 @@
|
||||||
padding: em($gap-smaller) em($gap);
|
padding: em($gap-smaller) em($gap);
|
||||||
@include font-size(small);
|
@include font-size(small);
|
||||||
height: max-content;
|
height: max-content;
|
||||||
line-height: normal;
|
|
||||||
width: max-content;
|
width: max-content;
|
||||||
}
|
}
|
||||||
|
|
|
@ -45,6 +45,7 @@
|
||||||
button[type="submit"]:not(.wp-block-search__button).wc-block-components-filter-submit-button {
|
button[type="submit"]:not(.wp-block-search__button).wc-block-components-filter-submit-button {
|
||||||
margin-left: 0;
|
margin-left: 0;
|
||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
|
@include font-size(small);
|
||||||
}
|
}
|
||||||
|
|
||||||
.wc-block-rating-filter__button {
|
.wc-block-rating-filter__button {
|
||||||
|
|
|
@ -46,6 +46,7 @@
|
||||||
button[type="submit"]:not(.wp-block-search__button).wc-block-components-filter-submit-button {
|
button[type="submit"]:not(.wp-block-search__button).wc-block-components-filter-submit-button {
|
||||||
margin-left: 0;
|
margin-left: 0;
|
||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
|
@include font-size(small);
|
||||||
}
|
}
|
||||||
|
|
||||||
.wc-block-stock-filter__button {
|
.wc-block-stock-filter__button {
|
||||||
|
|
|
@ -6,6 +6,7 @@
|
||||||
align-items: flex-start;
|
align-items: flex-start;
|
||||||
display: flex;
|
display: flex;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
@include font-size(small);
|
||||||
}
|
}
|
||||||
|
|
||||||
.wc-block-components-checkbox__input[type="checkbox"] {
|
.wc-block-components-checkbox__input[type="checkbox"] {
|
||||||
|
@ -17,7 +18,7 @@
|
||||||
height: em(24px);
|
height: em(24px);
|
||||||
width: em(24px);
|
width: em(24px);
|
||||||
margin: 0;
|
margin: 0;
|
||||||
margin-right: $gap;
|
margin-right: em($gap);
|
||||||
min-height: em(24px);
|
min-height: em(24px);
|
||||||
min-width: em(24px);
|
min-width: em(24px);
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
|
Loading…
Reference in New Issue