Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions core/pfe-core/controllers/internals-controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -269,14 +269,7 @@ export class InternalsController implements ReactiveController, ARIAMixin {
globalThis._elementInternals.set(this.host, this.internals);
}

/**
* We need to polyfill :disabled
* see https://github.com/calebdwilliams/element-internals-polyfill/issues/88
*/
#polyfillDisabledPseudo() {
// START polyfill-disabled
// We need to polyfill :disabled
// see https://github.com/calebdwilliams/element-internals-polyfill/issues/88
const orig = (this.element as FACE).formDisabledCallback;
(this.element as FACE).formDisabledCallback = disabled => {
this._formDisabled = disabled;
Expand Down
1 change: 0 additions & 1 deletion docs/_data/importMap.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ module.exports = async function() {
'tslib': readPackageVersion('tslib'),
'@rhds/elements': readPackageVersion('@rhds/elements'),
'prismjs': readPackageVersion('prismjs'),
'element-internals-polyfill': readPackageVersion('element-internals-polyfill'),
'fuse.js': readPackageVersion('fuse.js'),
'lit': readPackageVersion('lit'),
'@lit-labs/ssr-client': readPackageVersion('@lit-labs/ssr-client'),
Expand Down
4 changes: 1 addition & 3 deletions docs/_plugins/pfe-assets.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@ function getFilesToCopy(options) {
return null;
}

const files = {
[path.join(cwd, 'node_modules/element-internals-polyfill')]: 'element-internals-polyfill',
};
const files = {};

const corePkgs = fs.readdirSync(path.join(cwd, 'core'));

Expand Down
2 changes: 1 addition & 1 deletion docs/components/demos.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
</noscript>
<script async
src="https://ga.jspm.io/npm:es-module-shims@2.0.10/dist/es-module-shims.js"></script>
<script type="module">import 'element-internals-polyfill';</script>

<style>
html,
body,
Expand Down
1 change: 0 additions & 1 deletion docs/main.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import '@rhds/elements/rh-footer/rh-footer-universal.js';
import 'element-internals-polyfill';
import { PfV5Icon } from '@patternfly/elements/pf-v5-icon/pf-v5-icon.js';
import '@patternfly/elements/pf-v5-accordion/pf-v5-accordion.js';
import '@patternfly/elements/pf-v5-alert/pf-v5-alert.js';
Expand Down
1 change: 0 additions & 1 deletion elements/pf-v5-button/demo/block.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
</section>

<script type="module">
import 'element-internals-polyfill';
import '@patternfly/elements/pf-v5-button/pf-v5-button.js';
for (const button of document.querySelectorAll('pf-v5-button')) {
button.addEventListener('click', console.log);
Expand Down
1 change: 0 additions & 1 deletion elements/pf-v5-button/demo/form-control.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ <h2>Both disabled</h2>
</form>

<script type="module">
import 'element-internals-polyfill';
import '@patternfly/elements/pf-v5-switch/pf-v5-switch.js';
import '@patternfly/elements/pf-v5-button/pf-v5-button.js';

Expand Down
1 change: 0 additions & 1 deletion elements/pf-v5-button/demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
</pf-v5-button>

<script type="module">
import 'element-internals-polyfill';
import '@patternfly/elements/pf-v5-button/pf-v5-button.js';
document.getElementById('button').addEventListener('click', async function() {
await import('@patternfly/elements/pf-v5-badge/pf-v5-badge.js');
Expand Down
1 change: 0 additions & 1 deletion elements/pf-v5-button/demo/sizes.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
</section>

<script type="module">
import 'element-internals-polyfill';
import '@patternfly/elements/pf-v5-button/pf-v5-button.js';
for (const button of document.querySelectorAll('pf-v5-button')) {
button.addEventListener('click', console.log);
Expand Down
1 change: 0 additions & 1 deletion elements/pf-v5-button/demo/stateful.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
</section>

<script type="module">
import 'element-internals-polyfill';
import '@patternfly/elements/pf-v5-button/pf-v5-button.js';
import '@patternfly/elements/pf-v5-spinner/pf-v5-spinner.js';

Expand Down
1 change: 0 additions & 1 deletion elements/pf-v5-button/demo/variants.html
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ <h3>Disabled</h3>
</section>

<script type="module">
import 'element-internals-polyfill';
import '@patternfly/elements/pf-v5-button/pf-v5-button.js';
for (const button of document.querySelectorAll('pf-v5-button')) {
button.addEventListener('click', console.log);
Expand Down
1 change: 0 additions & 1 deletion elements/pf-v5-jump-links/demo/centered-list.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
</section>

<script type="module">
import 'element-internals-polyfill';
import '@patternfly/elements/pf-v5-jump-links/pf-v5-jump-links.js';
</script>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
</section>

<script type="module">
import 'element-internals-polyfill';
import '@patternfly/elements/pf-v5-jump-links/pf-v5-jump-links.js';
import '@patternfly/elements/pf-v5-jump-links/pf-v5-jump-links-list.js';
</script>
Expand Down
1 change: 0 additions & 1 deletion elements/pf-v5-jump-links/demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
</section>

<script type="module">
import 'element-internals-polyfill';
import '@patternfly/elements/pf-v5-jump-links/pf-v5-jump-links.js';
</script>

Expand Down
1 change: 0 additions & 1 deletion elements/pf-v5-jump-links/demo/label.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
</section>

<script type="module">
import 'element-internals-polyfill';
import '@patternfly/elements/pf-v5-jump-links/pf-v5-jump-links.js';
import '@patternfly/elements/pf-v5-jump-links/pf-v5-jump-links-list.js';
</script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,6 @@ <h2 id="heading-5">Heading 5</h2>
</div>

<script type="module">
import 'element-internals-polyfill';
import '@patternfly/elements/pf-v5-switch/pf-v5-switch.js';
import '@patternfly/elements/pf-v5-jump-links/pf-v5-jump-links.js';

Expand Down
1 change: 0 additions & 1 deletion elements/pf-v5-jump-links/demo/vertical-with-label.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ <h2>Vertical with label</h2>
</section>

<script type="module">
import 'element-internals-polyfill';
import '@patternfly/elements/pf-v5-jump-links/pf-v5-jump-links.js';
</script>

Expand Down
1 change: 0 additions & 1 deletion elements/pf-v5-jump-links/demo/vertical.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
</section>

<script type="module">
import 'element-internals-polyfill';
import '@patternfly/elements/pf-v5-jump-links/pf-v5-jump-links.js';
</script>

Expand Down
1 change: 0 additions & 1 deletion elements/pf-v5-progress-stepper/demo/alignment.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ <h2>With alignment</h2>
</form>

<script type="module">
import 'element-internals-polyfill';
import '@patternfly/elements/pf-v5-switch/pf-v5-switch.js';
import '@patternfly/elements/pf-v5-progress-stepper/pf-v5-progress-stepper.js';

Expand Down
1 change: 0 additions & 1 deletion elements/pf-v5-progress-stepper/demo/compact.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ <h2>Compact</h2>
</form>

<script type="module">
import 'element-internals-polyfill';
import '@patternfly/elements/pf-v5-switch/pf-v5-switch.js';
import '@patternfly/elements/pf-v5-progress-stepper/pf-v5-progress-stepper.js';

Expand Down
1 change: 0 additions & 1 deletion elements/pf-v5-progress-stepper/demo/custom-icons.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
</section>

<script type="module">
import 'element-internals-polyfill';
import '@patternfly/elements/pf-v5-progress-stepper/pf-v5-progress-stepper.js';
</script>

Expand Down
1 change: 0 additions & 1 deletion elements/pf-v5-progress-stepper/demo/danger.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
</section>

<script type="module">
import 'element-internals-polyfill';
import '@patternfly/elements/pf-v5-progress-stepper/pf-v5-progress-stepper.js';
</script>

Expand Down
1 change: 0 additions & 1 deletion elements/pf-v5-progress-stepper/demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
</section>

<script type="module">
import 'element-internals-polyfill';
import '@patternfly/elements/pf-v5-progress-stepper/pf-v5-progress-stepper.js';
</script>

Expand Down
1 change: 0 additions & 1 deletion elements/pf-v5-progress-stepper/demo/info.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
</section>

<script type="module">
import 'element-internals-polyfill';
import '@patternfly/elements/pf-v5-switch/pf-v5-switch.js';
import '@patternfly/elements/pf-v5-progress-stepper/pf-v5-progress-stepper.js';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
</section>

<script type="module">
import 'element-internals-polyfill';
import '@patternfly/elements/pf-v5-progress-stepper/pf-v5-progress-stepper.js';
</script>

Expand Down
3 changes: 0 additions & 3 deletions elements/pf-v5-switch/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@ Then once installed, import it to your application:
import '@patternfly/elements/pf-v5-switch/pf-v5-switch.js';
```

### Note
For `<pf-v5-switch>` to work in Safari, you'll need to load the [element-internals-polyfill](https://www.npmjs.com/package/element-internals-polyfill). Safari is in the process of [adding element internals to WebKit](https://bugs.webkit.org/show_bug.cgi?id=197960) so this polyfill should be temporary.

## Usage
```html
<pf-v5-switch id="switch"></pf-v5-switch>
Expand Down
1 change: 0 additions & 1 deletion elements/pf-v5-switch/demo/checked.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
</section>

<script type="module">
import 'element-internals-polyfill';
import '@patternfly/elements/pf-v5-switch/pf-v5-switch.js';
import '@patternfly/elements/pf-v5-button/pf-v5-button.js';
</script>
Expand Down
1 change: 0 additions & 1 deletion elements/pf-v5-switch/demo/disabled.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
</section>

<script type="module">
import 'element-internals-polyfill';
import '@patternfly/elements/pf-v5-switch/pf-v5-switch.js';
</script>

Expand Down
1 change: 0 additions & 1 deletion elements/pf-v5-switch/demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@
</section>

<script type="module">
import 'element-internals-polyfill';
import '@patternfly/elements/pf-v5-switch/pf-v5-switch.js';
import '@patternfly/elements/pf-v5-button/pf-v5-button.js';

Expand Down
1 change: 0 additions & 1 deletion elements/pf-v5-switch/demo/nested-in-label.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
</section>

<script type="module">
import 'element-internals-polyfill';
import '@patternfly/elements/pf-v5-switch/pf-v5-switch.js';
import '@patternfly/elements/pf-v5-button/pf-v5-button.js';

Expand Down
1 change: 0 additions & 1 deletion elements/pf-v5-switch/demo/reversed.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
</section>

<script type="module">
import 'element-internals-polyfill';
import '@patternfly/elements/pf-v5-switch/pf-v5-switch.js';
import '@patternfly/elements/pf-v5-button/pf-v5-button.js';
</script>
Expand Down
1 change: 0 additions & 1 deletion elements/pf-v5-switch/demo/without-label.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
</section>

<script type="module">
import 'element-internals-polyfill';
import '@patternfly/elements/pf-v5-switch/pf-v5-switch.js';
import '@patternfly/elements/pf-v5-button/pf-v5-button.js';
</script>
Expand Down
3 changes: 0 additions & 3 deletions elements/pf-v5-tabs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@ Then once installed, import it to your application:
import '@patternfly/elements/pf-v5-tabs/pf-v5-tabs.js';
```

### Note
For `<pf-v5-tabs>` to work in Safari, you'll need to load the [element-internals-polyfill](https://www.npmjs.com/package/element-internals-polyfill). Safari is in the process of [adding element internals to WebKit](https://bugs.webkit.org/show_bug.cgi?id=197960) so this polyfill should be temporary.

## Usage

```html
Expand Down
11 changes: 0 additions & 11 deletions package-lock.json

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

1 change: 0 additions & 1 deletion tools/pfe-tools/dev-server/plugins/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
{% endfor %}
<script type="module">
import 'construct-style-sheets-polyfill';
import 'element-internals-polyfill';
import '@patternfly/elements/pf-v5-button/pf-v5-button.js';
import '@patternfly/elements/pf-v5-card/pf-v5-card.js';
import '@patternfly/pfe-tools/dev-server/demo.js';
Expand Down
2 changes: 1 addition & 1 deletion tools/pfe-tools/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
"construct-style-sheets-polyfill": "^3.1.0",
"dedent": "^1.7.1",
"dotenv": "^17.2.3",
"element-internals-polyfill": "^3.0.2",

"eleventy-plugin-toc": "^1.1.5",
"es-module-shims": "^2.7.0",
"esbuild": "^0.27.2",
Expand Down
Loading