Skip to content

Commit 36a1ec0

Browse files
TrevorBurnhamgeorgylobko
authored andcommitted
perf: Remove last remnants of IE11 support
Support for IE11 was dropped years ago. This commit removes lingering legacy code aimed at that ancient browser.
1 parent 2212c21 commit 36a1ec0

File tree

15 files changed

+2
-100
lines changed

15 files changed

+2
-100
lines changed

build-tools/eslint/__tests__/no-implicit-svg-focusable.test.js

Lines changed: 0 additions & 25 deletions
This file was deleted.

build-tools/eslint/index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,5 @@
22
// SPDX-License-Identifier: Apache-2.0
33
module.exports.rules = {
44
'ban-files': require('./ban-files'),
5-
'no-implicit-svg-focusable': require('./no-implicit-svg-focusable'),
65
'prefer-live-region': require('./prefer-live-region'),
76
};

build-tools/eslint/no-implicit-svg-focusable.js

Lines changed: 0 additions & 31 deletions
This file was deleted.

eslint.config.mjs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@ export default tsEslint.config(
8989
},
9090
],
9191
],
92-
'@cloudscape-design/components/no-implicit-svg-focusable': 'error',
9392
'@cloudscape-design/components/prefer-live-region': 'warn',
9493
'@typescript-eslint/naming-convention': [
9594
'error',

pages/app/index.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<!DOCTYPE html>
22
<html lang="en">
33
<head>
4-
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
54
<meta charset="UTF-8" />
65
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
76
<title>Cloudscape demo pages</title>

pages/box/style.scss

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,8 @@
66
@use '~design-tokens' as awsui;
77

88
.permutation-box {
9-
border-block: 1px solid;
10-
border-inline: 1px solid;
11-
// Border color separated as fallback styling is not generated and IE11 does not support
12-
// css variables
13-
border-color: awsui.$color-text-body-default;
9+
border-block: 1px solid awsui.$color-text-body-default;
10+
border-inline: 1px solid awsui.$color-text-body-default;
1411
background-color: awsui.$color-background-container-content;
1512
}
1613
.inverted {

pages/button-dropdown/styles.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
block-size: 300px;
1919
border-block: 1px solid red;
2020
border-inline: 1px solid red;
21-
-ms-overflow-style: none;
2221

2322
&.scroll,
2423
&.auto {

pages/popover/positioning.scss

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,8 @@
1010
padding-block: 1.2rem;
1111
padding-inline: 1.2rem;
1212
display: grid;
13-
display: -ms-grid;
1413
grid-template-columns: 1fr 1fr 1fr;
1514
grid-template-rows: 1fr 1fr 1fr;
16-
-ms-grid-columns: 1fr 1fr 1fr;
17-
-ms-grid-rows: 1fr 1fr 1fr;
1815
}
1916

2017
.square {
@@ -25,35 +22,29 @@
2522
.square-row-1 {
2623
justify-content: flex-start;
2724
grid-row: 1;
28-
-ms-grid-row: 1;
2925
}
3026

3127
.square-row-2 {
3228
justify-content: center;
3329
grid-row: 2;
34-
-ms-grid-row: 2;
3530
}
3631

3732
.square-row-3 {
3833
justify-content: flex-end;
3934
grid-row: 3;
40-
-ms-grid-row: 3;
4135
}
4236

4337
.square-col-1 {
4438
align-items: flex-start;
4539
grid-column: 1;
46-
-ms-grid-column: 1;
4740
}
4841

4942
.square-col-2 {
5043
align-items: center;
5144
grid-column: 2;
52-
-ms-grid-column: 2;
5345
}
5446

5547
.square-col-3 {
5648
align-items: flex-end;
5749
grid-column: 3;
58-
-ms-grid-column: 3;
5950
}

src/input/styles.scss

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,11 @@
1414
user-select: none;
1515
}
1616

17-
&::-ms-input-placeholder {
18-
@content;
19-
}
20-
2117
&::-moz-placeholder {
2218
@content;
2319
opacity: 1;
2420
}
2521

26-
&:-ms-input-placeholder {
27-
@content;
28-
}
29-
3022
&:-moz-placeholder {
3123
@content;
3224
opacity: 1;

src/prompt-input/styles.scss

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,6 @@ $invalid-border-offset: constants.$invalid-control-left-padding;
9898
opacity: 1;
9999
}
100100

101-
&:-ms-input-placeholder {
102-
@include styles.form-placeholder;
103-
}
104101

105102
&:focus {
106103
outline: none;
@@ -126,9 +123,6 @@ $invalid-border-offset: constants.$invalid-control-left-padding;
126123
opacity: 1;
127124
}
128125

129-
&:-ms-input-placeholder {
130-
@include styles.form-placeholder-disabled;
131-
}
132126
}
133127

134128
&-wrapper {

0 commit comments

Comments
 (0)