Skip to content

Commit

Permalink
refactor: remove obsolete vendor-prefixed CSS properties (#8309)
Browse files Browse the repository at this point in the history
  • Loading branch information
vursen authored Dec 10, 2024
1 parent ceded83 commit f39f62d
Show file tree
Hide file tree
Showing 22 changed files with 1 addition and 28 deletions.
1 change: 0 additions & 1 deletion packages/accordion/src/vaadin-accordion-heading-styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ export const accordionHeading = css`
display: block;
outline: none;
-webkit-user-select: none;
-moz-user-select: none;
user-select: none;
}
Expand Down
1 change: 0 additions & 1 deletion packages/button/src/vaadin-button-base.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ export const buttonStyles = css`
outline: none;
white-space: nowrap;
-webkit-user-select: none;
-moz-user-select: none;
user-select: none;
}
Expand Down
1 change: 0 additions & 1 deletion packages/checkbox/theme/lumo/vaadin-checkbox-styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ registerStyles(
-moz-osx-font-smoothing: grayscale;
-webkit-tap-highlight-color: transparent;
-webkit-user-select: none;
-moz-user-select: none;
user-select: none;
cursor: default;
outline: none;
Expand Down
2 changes: 0 additions & 2 deletions packages/checkbox/theme/material/vaadin-checkbox-styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ registerStyles(
:host {
display: inline-block;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
outline: none;
-webkit-tap-highlight-color: transparent;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ const contextMenuItem = css`
/* :hover needed to workaround https://github.com/vaadin/web-components/issues/3133 */
:host(:hover) {
user-select: none;
-ms-user-select: none;
-webkit-user-select: none;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ stylesTemplate.innerHTML = `
transform: translateX(100%);
-webkit-tap-highlight-color: transparent;
-webkit-user-select: none;
-moz-user-select: none;
user-select: none;
/* Center the year scroller position. */
--vaadin-infinite-scroller-buffer-offset: 50%;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ registerStyles(
'vaadin-month-calendar',
css`
:host {
-moz-user-select: none;
-webkit-user-select: none;
-webkit-tap-highlight-color: transparent;
user-select: none;
Expand Down
1 change: 0 additions & 1 deletion packages/details/src/vaadin-details-summary.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ class DetailsSummary extends ButtonMixin(DirMixin(ThemableMixin(PolymerElement))
outline: none;
white-space: nowrap;
-webkit-user-select: none;
-moz-user-select: none;
user-select: none;
}
Expand Down
1 change: 0 additions & 1 deletion packages/details/src/vaadin-lit-details-summary.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ class DetailsSummary extends ButtonMixin(DirMixin(ThemableMixin(PolylitMixin(Lit
outline: none;
white-space: nowrap;
-webkit-user-select: none;
-moz-user-select: none;
user-select: none;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ const gridProEditSelect = css`
font-size: var(--lumo-font-size-m);
/* prevent selection on editor focus */
-webkit-user-select: none;
-moz-user-select: none;
user-select: none;
}
`;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ const gridProEditSelect = css`
font-size: inherit;
/* prevent selection on editor focus */
-webkit-user-select: none;
-moz-user-select: none;
user-select: none;
}
`;
Expand Down
3 changes: 0 additions & 3 deletions packages/grid/src/vaadin-grid-styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,6 @@ export const gridStyles = css`
}
:host([reordering]) {
-moz-user-select: none;
-webkit-user-select: none;
user-select: none;
}
Expand Down Expand Up @@ -294,8 +293,6 @@ export const gridStyles = css`
}
#scroller[column-resizing] {
-ms-user-select: none;
-moz-user-select: none;
-webkit-user-select: none;
user-select: none;
}
Expand Down
2 changes: 1 addition & 1 deletion packages/grid/test/column-reordering.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ describe('reordering simple grid', () => {
it('should prevent text selection while reordering', () => {
dragStart(headerContent[0]);
const style = window.getComputedStyle(grid);
const userSelect = style['user-select'] || style['-moz-user-select'] || style['-webkit-user-select'];
const userSelect = style['user-select'] || style['-webkit-user-select'];
expect(userSelect).to.equal('none');
});

Expand Down
1 change: 0 additions & 1 deletion packages/grid/theme/lumo/vaadin-grid-sorter-styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ registerStyles(
justify-content: flex-start;
align-items: baseline;
-webkit-user-select: none;
-moz-user-select: none;
user-select: none;
cursor: var(--lumo-clickable-cursor);
}
Expand Down
1 change: 0 additions & 1 deletion packages/grid/theme/material/vaadin-grid-sorter-styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ registerStyles(
height: 100%;
align-items: center;
-webkit-user-select: none;
-moz-user-select: none;
user-select: none;
}
Expand Down
4 changes: 0 additions & 4 deletions packages/map/src/vaadin-map.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,6 @@ class Map extends ResizeMixin(FocusMixin(ElementMixin(ThemableMixin(PolymerEleme
.ol-unselectable {
-webkit-touch-callout: none;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
-webkit-tap-highlight-color: transparent;
}
Expand All @@ -127,8 +125,6 @@ class Map extends ResizeMixin(FocusMixin(ElementMixin(ThemableMixin(PolymerEleme
.ol-selectable {
-webkit-touch-callout: default;
-webkit-user-select: text;
-moz-user-select: text;
-ms-user-select: text;
user-select: text;
}
Expand Down
1 change: 0 additions & 1 deletion packages/number-field/src/vaadin-number-field-styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ export const numberFieldStyles = css`
[part='decrease-button'],
[part='increase-button'] {
-webkit-user-select: none;
-moz-user-select: none;
user-select: none;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ registerStyles(
-moz-osx-font-smoothing: grayscale;
-webkit-tap-highlight-color: transparent;
-webkit-user-select: none;
-moz-user-select: none;
user-select: none;
cursor: default;
outline: none;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ registerStyles(
:host {
display: inline-block;
-webkit-user-select: none;
-moz-user-select: none;
user-select: none;
outline: none;
-webkit-tap-highlight-color: transparent;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ export const statesStyles = css`
pointer-events: none;
opacity: 0.5;
-webkit-user-select: none;
-moz-user-select: none;
user-select: none;
}
Expand Down
1 change: 0 additions & 1 deletion packages/select/src/vaadin-select-value-button-styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ export const valueButton = css`
outline: none;
white-space: nowrap;
-webkit-user-select: none;
-moz-user-select: none;
user-select: none;
min-width: 0;
width: 0;
Expand Down
1 change: 0 additions & 1 deletion packages/tabs/theme/lumo/vaadin-tab-styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ registerStyles(
overflow: hidden;
min-width: var(--lumo-size-m);
-webkit-user-select: none;
-moz-user-select: none;
user-select: none;
--_focus-ring-color: var(--vaadin-focus-ring-color, var(--lumo-primary-color-50pct));
--_focus-ring-width: var(--vaadin-focus-ring-width, 2px);
Expand Down

0 comments on commit f39f62d

Please sign in to comment.