From 4eaf6a28f7b5eaf60487841d264d6d804ae675ce Mon Sep 17 00:00:00 2001 From: Westbrook Johnson Date: Sun, 17 Jan 2021 17:14:52 -0500 Subject: [PATCH] fix: use the "browsers" listing in postcss-preset-env --- packages/accordion/src/spectrum-accordion-item.css | 1 - packages/action-button/src/spectrum-action-button.css | 1 - packages/actionbar/src/spectrum-actionbar.css | 1 - packages/avatar/src/spectrum-avatar.css | 1 - packages/button/src/spectrum-button.css | 1 - packages/button/src/spectrum-clear-button.css | 1 - packages/dropdown/src/spectrum-dropdown.css | 1 - packages/modal/src/spectrum-modal-wrapper.css | 1 - packages/slider/src/spectrum-slider.css | 2 -- packages/tags/src/spectrum-tag.css | 1 - packages/tooltip/src/spectrum-tooltip.css | 1 - scripts/css-processing.js | 6 ++++++ 12 files changed, 6 insertions(+), 12 deletions(-) diff --git a/packages/accordion/src/spectrum-accordion-item.css b/packages/accordion/src/spectrum-accordion-item.css index 49703e77ee..3ef81e4fce 100644 --- a/packages/accordion/src/spectrum-accordion-item.css +++ b/packages/accordion/src/spectrum-accordion-item.css @@ -154,7 +154,6 @@ THIS FILE IS MACHINE GENERATED. DO NOT EDIT */ cursor: pointer; font-weight: 500; -webkit-appearance: none; - -moz-appearance: none; appearance: none; background-color: inherit; border: 0; diff --git a/packages/action-button/src/spectrum-action-button.css b/packages/action-button/src/spectrum-action-button.css index d0cfb927f4..bcc7f03b05 100644 --- a/packages/action-button/src/spectrum-action-button.css +++ b/packages/action-button/src/spectrum-action-button.css @@ -36,7 +36,6 @@ THIS FILE IS MACHINE GENERATED. DO NOT EDIT */ var(--spectrum-global-font-family-base) ); line-height: 1.3; - -moz-user-select: none; user-select: none; -webkit-user-select: none; touch-action: none; diff --git a/packages/actionbar/src/spectrum-actionbar.css b/packages/actionbar/src/spectrum-actionbar.css index 089ed8609e..7829ffb22c 100644 --- a/packages/actionbar/src/spectrum-actionbar.css +++ b/packages/actionbar/src/spectrum-actionbar.css @@ -50,7 +50,6 @@ THIS FILE IS MACHINE GENERATED. DO NOT EDIT */ } :host([variant='sticky']) { /* .spectrum-ActionBar--sticky */ - position: -webkit-sticky; position: sticky; } :host([flexible]) #popover { diff --git a/packages/avatar/src/spectrum-avatar.css b/packages/avatar/src/spectrum-avatar.css index cdaa1aac3d..b453e4ebe3 100644 --- a/packages/avatar/src/spectrum-avatar.css +++ b/packages/avatar/src/spectrum-avatar.css @@ -24,7 +24,6 @@ THIS FILE IS MACHINE GENERATED. DO NOT EDIT */ border-style: none; -webkit-user-drag: none; -webkit-user-select: none; - -moz-user-select: none; user-select: none; opacity: var(--spectrum-avatar-size-100-opacity, 1); } diff --git a/packages/button/src/spectrum-button.css b/packages/button/src/spectrum-button.css index 6f6d26f16c..0302a30140 100644 --- a/packages/button/src/spectrum-button.css +++ b/packages/button/src/spectrum-button.css @@ -39,7 +39,6 @@ THIS FILE IS MACHINE GENERATED. DO NOT EDIT */ var(--spectrum-global-font-family-base) ); line-height: 1.3; - -moz-user-select: none; user-select: none; -webkit-user-select: none; touch-action: none; diff --git a/packages/button/src/spectrum-clear-button.css b/packages/button/src/spectrum-clear-button.css index 82d00e0d00..807115183b 100644 --- a/packages/button/src/spectrum-clear-button.css +++ b/packages/button/src/spectrum-clear-button.css @@ -39,7 +39,6 @@ THIS FILE IS MACHINE GENERATED. DO NOT EDIT */ var(--spectrum-global-font-family-base) ); line-height: 1.3; - -moz-user-select: none; user-select: none; -webkit-user-select: none; touch-action: none; diff --git a/packages/dropdown/src/spectrum-dropdown.css b/packages/dropdown/src/spectrum-dropdown.css index b3afd928d0..fd363bc8fd 100644 --- a/packages/dropdown/src/spectrum-dropdown.css +++ b/packages/dropdown/src/spectrum-dropdown.css @@ -33,7 +33,6 @@ THIS FILE IS MACHINE GENERATED. DO NOT EDIT */ var(--spectrum-global-font-family-base) ); line-height: 1.3; - -moz-user-select: none; user-select: none; -webkit-user-select: none; touch-action: none; diff --git a/packages/modal/src/spectrum-modal-wrapper.css b/packages/modal/src/spectrum-modal-wrapper.css index d3720a55b8..1f942127bd 100644 --- a/packages/modal/src/spectrum-modal-wrapper.css +++ b/packages/modal/src/spectrum-modal-wrapper.css @@ -22,7 +22,6 @@ THIS FILE IS MACHINE GENERATED. DO NOT EDIT */ width: 100vw; height: 100vh; height: -webkit-fill-available; - height: -moz-available; height: fill-available; visibility: hidden; pointer-events: none; diff --git a/packages/slider/src/spectrum-slider.css b/packages/slider/src/spectrum-slider.css index 1b5bbdf705..52ed390d15 100644 --- a/packages/slider/src/spectrum-slider.css +++ b/packages/slider/src/spectrum-slider.css @@ -103,7 +103,6 @@ THIS FILE IS MACHINE GENERATED. DO NOT EDIT */ min-height: var(--spectrum-slider-height); min-width: var(--spectrum-slider-min-width); -webkit-user-select: none; - -moz-user-select: none; user-select: none; } :host([dir='ltr']) #controls { @@ -302,7 +301,6 @@ THIS FILE IS MACHINE GENERATED. DO NOT EDIT */ :host([variant='range']) #value { /* .spectrum-Slider--range .spectrum-Slider-value */ -webkit-user-select: text; - -moz-user-select: text; user-select: text; } :host([dir='ltr'][variant='range']) .track:first-of-type { diff --git a/packages/tags/src/spectrum-tag.css b/packages/tags/src/spectrum-tag.css index 8296e1a273..fcbb3b4cba 100644 --- a/packages/tags/src/spectrum-tag.css +++ b/packages/tags/src/spectrum-tag.css @@ -50,7 +50,6 @@ THIS FILE IS MACHINE GENERATED. DO NOT EDIT */ border-radius: var(--spectrum-global-dimension-size-50); outline: none; -webkit-user-select: none; - -moz-user-select: none; user-select: none; transition: border-color var(--spectrum-global-animation-duration-100, 0.13s) ease-in-out, diff --git a/packages/tooltip/src/spectrum-tooltip.css b/packages/tooltip/src/spectrum-tooltip.css index 2a5d0ccf60..c9d344495d 100644 --- a/packages/tooltip/src/spectrum-tooltip.css +++ b/packages/tooltip/src/spectrum-tooltip.css @@ -109,7 +109,6 @@ THIS FILE IS MACHINE GENERATED. DO NOT EDIT */ -webkit-font-smoothing: antialiased; cursor: default; -webkit-user-select: none; - -moz-user-select: none; user-select: none; } p { diff --git a/scripts/css-processing.js b/scripts/css-processing.js index 213d538edb..7d939bc133 100644 --- a/scripts/css-processing.js +++ b/scripts/css-processing.js @@ -21,6 +21,12 @@ const postCSSPlugins = (resourcePath) => { require('postcss-inherit')(), require('postcss-preset-env')({ stage: 0, + browsers: [ + 'last 2 Chrome versions', + 'last 2 Firefox versions', + 'last 2 Safari versions', + 'last 2 iOS versions', + ], }), // minify the css with cssnano presets require('cssnano')({