- ec6b358:
<pf-select>: don't steal browser focus on page load, and improve keyboard accessibility of the listbox. - Updated dependencies [ec6b358]
- @patternfly/pfe-core@5.0.6
-
280ef9b: ✨ Added
<pf-alert>componentAn alert is a notification that provides brief information to the user without blocking their workflow.
<pf-alert variant="warning" title-text="Custom alert title" dismissable> This is the alert description. <pf-button slot="actions">Ok</pf-button> <pf-button slot="actions">Cancel</pf-button> </pf-alert>
-
1eea604: ✨ Added
<pf-helper-text>componentHelper text is an on-screen field guideline that helps provide context regarding field inputs.
<pf-helper-text variant="error">You must include an email address</pf-helper-text>
-
26b1faa: ✨ Added
<pf-hint>componentA hint is in-app messaging that provides a one-step reminder, explanation, or call to action for a page or modal. Hints provide information about an interaction or prerequisite step that might not be immediately obvious to the user.
<pf-hint> Welcome to the new documentation experience. <a href="#">Learn more about the improved features</a>. </pf-hint>
- a13e259: Update dependencies
- Updated dependencies [a13e259]
- @patternfly/pfe-core@5.0.5
-
bd40a73: ✨ Added
<pf-search-input>.A search input consists of a text field where users can type to find specific content or items. Unlike selects or dropdowns, which offer predefined options, a search input lets users enter their own keywords to filter or locate results. It includes a clear (×) button to easily remove the current input, allowing users to start a new search quickly.
Use this when users need to search freely using their own terms — ideal for large or frequently changing sets of content. Do not use when the options are limited and known ahead of time — consider a dropdown or select instead
<pf-search-input> <pf-option value="Alabama"> Alabama </pf-option> <pf-option value="New Jersey"> New Jersey </pf-option> <pf-option value="New York"> New York </pf-option> <pf-option value="New Mexico"> New Mexico </pf-option> <pf-option value="North Carolina"> North Carolina </pf-option> </pf-search-input>
- f35d4fa: Use inline slot documentation instead of JSDoc
- d36adee:
<pf-tooltip>: hide content when copy/pasting tooltip elements
-
8b5b699: SSR: added
ssr-hint-has-slottedandssr-hint-has-slotted-defaultattributes to elements that use slot controller.When running SSR on elements with slots, add these attributes to ensure they render correctly.
<pf-card ssr-hint-has-slotted-default ssr-hint-has-slotted="header,footer"> <h2 slot="header">Header Content</h2> <p>Default content</p> <span slot="footer">Footer Content</span> </pf-card>
- 996e089: SSR: enable more elements and more features to be rendered server-side
- Updated dependencies [0277045]
- Updated dependencies [8b5b699]
- Updated dependencies [a2f3254]
- @patternfly/pfe-core@5.0.0
- 155911d:
<pf-jump-links>: corrected a layout bug which occurred when thecenteredattribute applied
- bce98d2:
<pf-icon>: fixed lazy icon lazy loading - Updated dependencies [43b97bf]
- @patternfly/pfe-core@4.0.1
-
c9bd577:
<pf-icon>: removed thegetIconUrlstatic method, and replaced it with theresolvestatic methodThe steps for overriding icon loading behaviour have changed. Before, you had to return a string from the
getIconUrlmethod, or the second argument toaddIconSet. Now, both of those functions must return a Node, or any lit-html renderable value, or a Promise thereof.Before:
PfIcon.addIconSet('local', (set, icon) => new URL(`/assets/icons/${set}-${icon}.js`)); // or PfIcon.getIconUrl = (set, icon) => new URL(`/assets/icons/${set}-${icon}.js`))
After:
PfIcon.addIconSet('local', (set, icon) => import(`/assets/icons/${set}-${icon}.js`)) .then(mod => mod.default); // or PfIcon.resolve = (set, icon) => import(`/assets/icons/${set}-${icon}.js`)) .then(mod => mod.default);
-
c9bd577:
<pf-icon>: removed thedefaultIconSetstatic field. -
c9bd577:
<pf-accordion>: RemovedBaseAccordion*classes, as well as staticisPanel,isHeader, andisAccordionmethods. Removed the optionalparentAccordionparameter toPfAccordion#expand(index). Renamed accordion event classes by adding thePfprefix:Before:
import { AccordionHeaderChangeEvent } from "@patternfly/elements/pf-accordion/pf-accordion.js"; addEventListener("change", function (event) { if (event instanceof AccordionHeaderChangeEvent) { // ... } });
After:
import { PfAccordionHeaderChangeEvent } from "@patternfly/elements/pf-accordion/pf-accordion.js"; addEventListener("change", function (event) { if (event instanceof PfAccordionHeaderChangeEvent) { // ... } });
-
c9bd577:
<pf-icon>: removed svg files, use@patternfly/iconsinstead -
c9bd577:
<pf-label>: when clicking close button,closeevent is fired. Now, if that event is not cancelled, the label will remove itself from the document.To restore previous behaviour:
import { LabelCloseEvent } from "@patternfly/elements/pf-label/pf-label.js"; label.addEventListener("close", function (event) { if (event instanceof LabelCloseEvent) { event.preventDefault(); return false; } });
-
c9bd577:
<pf-clipboard-copy>: RemovedBaseClipboardCopyclass. Reimplement (recommended) or extendPfClipboardCopy. RenamesAvatarLoadEventtoPfAvatarLoadEventand moves it topf-avatar.js.Before:
import { ClipboardCopyCopiedEvent } from "@patternfly/elements/pf-clipboard-copy/BaseClipboardCopy.js"; addEventListener("copy", function (event) { if (event instanceof ClipboardCopyCopiedEvent) { // ... } });
After:
import { PfClipboardCopyCopiedEvent } from "@patternfly/elements/pf-clipboard-copy/pf-clipboard-copy.js"; addEventListener("copy", function (event) { if (event instanceof PfClipboardCopyCopiedEvent) { // ... } });
-
c9bd577:
<pf-icon>: RemovedBaseIconclass. Reimplement (recommended) or extendPfIcon. -
c9bd577:
<pf-label>: RemovedBaseLabelclass. Reimplement (recommended) or extendPfLabel. -
c9bd577:
<pf-switch>: RemovedBaseSwitchclass. Reimplement (recommended) or extendPfSwitch. -
c9bd577:
<pf-avatar>: RemovedBaseAvatarclass. Reimplement (recommended) or extendPfAvatar. RenamesAvatarLoadEventtoPfAvatarLoadEventand moves it topf-avatar.js.Before:
import { AvatarLoadEvent } from "@patternfly/elements/pf-avatar/BaseAvatar.js"; addEventListener("load", function (event) { if (event instanceof AvatarLoadEvent) { // ... } });
After:
import { PfAvatarLoadEvent } from "@patternfly/elements/pf-avatar/pf-avatar.js"; addEventListener("load", function (event) { if (event instanceof PfAvatarLoadEvent) { // ... } });
-
c9bd577:
<pf-badge>: RemovedBaseBadgeclass. Reimplement (recommended) or extendPfBadge. -
c9bd577:
<pf-button>: RemovedBaseButtonclass. Reimplement (recommended) or extendPfButton. -
c9bd577:
<pf-code-block>: RemovedBaseCodeBlockclass. Reimplement (recommended) or extendPfCodeBlock. -
c9bd577:
<pf-spinner>: RemovedBaseSpinnerclass. Reimplement (recommended) or extendPfSpinner. -
c9bd577:
<pf-tabs>: RemoveBaseTabs. UseTabsAriaController, etc. to reimplement your elements which extend it, or extend fromPfTabsinstead. -
c9bd577:
<pf-tile>: RemovedBaseTileclass. Reimplement (recommended) or extendPfTile. -
c9bd577:
<pf-tooltip>: RemovedBaseTooltipclass. Reimplement (recommended) or extendPfTooltip. -
c9bd577:
<pf-card>: RemovesBaseCardbase class. If your project extendsBaseCard, we recommend extendingLitElementinstead and re-implementing card's properties. Alternately, extend fromPfCard.
-
c9bd577:
<pf-card>: addedtitleslot, for when the title is not inline with any slotted header actions -
c9bd577: ✨ Added
<pf-select variant="typeahead">A typeahead select is an inline-autocomplete combobox.
<label for="state">State</label> <pf-select id="state" variant="typeahead" placeholder="Select a state"> <pf-option value="Alabama" description="The heart of Dixie"></pf-option> <pf-option value="Florida" description="The sunshine state" disabled ></pf-option> <pf-option value="New Jersey"></pf-option> <pf-option value="New York"></pf-option> <pf-option value="New Mexico"></pf-option> <pf-option value="North Carolina"></pf-option> </pf-select>
-
587d957:
<pf-button>: Addedhrefattribute to<pf-button variant="link">
- c9bd577: updated dependencies
- 3e9d785:
<pf-select>: prevent bug when select is in a deeply nested in shadow root - 4995067:
<pf-back-to-top>: fix hover color - Updated dependencies [c9bd577]
- Updated dependencies [c9bd577]
- Updated dependencies [c9bd577]
- Updated dependencies [c9bd577]
- Updated dependencies [6d9045e]
- Updated dependencies [c9bd577]
- Updated dependencies [c9bd577]
- Updated dependencies [c9bd577]
- Updated dependencies [c9bd577]
- Updated dependencies [c9bd577]
- Updated dependencies [c9bd577]
- Updated dependencies [c9bd577]
- Updated dependencies [c9bd577]
- @patternfly/pfe-core@4.0.0
- 9702278:
<pf-clipboard-copy>: corrected size of copy button
- afac682:
<pf-select>: fixed computed button label when the placeholder attribute is present - 6aa674a:
<pf-spinner>: improved screen-reader accessibility
-
16d0dd7:
<pf-modal>: remove deprecatedwidthattribute. usevariantinstead -
b9bb7e3:
<pf-button>: improves accessibility of elements that use<pf-button>by giving the custom element itself thebuttonrole -
de4cfa4: Remove
/elements/pf-icon/icons/**/*. Use@patternfly/iconsinstead. -
de4cfa4:
<pf-accordion>: use patternfly design tokens. removes--accordion__bordered--Color -
50f462c: Update dependencies, including Lit version 3
-
67eb59c:
<pf-switch>: Reimplemented label API improving accessibility.<!-- BEFORE: --> <pf-switch id="checked" checked show-check-icon></pf-switch> <label for="checked" data-state="on">Message when on</label> <label for="checked" data-state="off">Message when off</label> <!-- AFTER: --> <pf-switch id="checked" checked show-check-icon></pf-switch> <label for="checked"> <span data-state="on">Message when on</span> <span data-state="off" hidden>Message when off</span> </label>
-
fa50164:
<pf-tabs>: improved overflow handling, added dynamic tab creation support -
22d7536: ✨ Added
<pf-back-to-top><pf-back-to-top href="#top" scrollable-selector="main" >Back to Top</pf-back-to-top >
-
292d3e9: ✨ Added
<pf-background-image><pf-background-image src="/path/to/image.jpg" src-2x="/path/to/image@2x.jpg" src-sm="/path/to/image-768.jpg" src-sm-2x="/path/to/image-768@2x.jpg" src-lg="/path/to/image-992.jpg" ></pf-background-image>
-
0d92145: ✨ Added
<pf-chip>A chip is used to communicate a value or a set of attribute-value pairs within workflows that involve filtering a set of objects.
<pf-chip-group> <pf-chip>Chip 1</pf-chip> <pf-chip>Chip 2</pf-chip> <pf-chip>Chip 3</pf-chip> <pf-chip>Chip 4</pf-chip> </pf-chip-group>
-
0d92145: ✨ Added
<pf-dropdown>A dropdown presents a menu of actions or links in a constrained space that will trigger a process or navigate to a new location.
<pf-dropdown> <pf-dropdown-item>item4</pf-dropdown-item> <hr /> <pf-dropdown-group label="Group 1"> <pf-dropdown-item>item1</pf-dropdown-item> <pf-dropdown-item>item2</pf-dropdown-item> <hr /> <pf-dropdown-item>item3</pf-dropdown-item> </pf-dropdown-group> <pf-dropdown-group label="Group 2"> <pf-dropdown-item>item1</pf-dropdown-item> <pf-dropdown-item>item2</pf-dropdown-item> </pf-dropdown-group> </pf-dropdown>
-
0d92145: ✨ Added
<pf-select>A select list enables users to select one or more items from a list.
<label for="color">Pick a color</label> <pf-select id="color" placeholder="Blue"> <pf-option>Blue</pf-option> <pf-option>Green</pf-option> <pf-option>Magenta</pf-option> <pf-option>Orange</pf-option> <pf-option>Purple</pf-option> <pf-option>Pink</pf-option> <pf-option>Red</pf-option> <pf-option>Yellow</pf-option> </pf-select>
-
c71bbe5: ✨ Added
<pf-text-area><form> <pf-text-area id="textarea" name="comments" placeholder="OpenShift enabled our team to..." resize="vertical" auto-resize required ></pf-text-area> </form>
-
2c019ac:
<pf-text-input>: addshelper-text,error-text, andvalidate-onattributes. Forwardspatternattribute<pf-text-input id="validated" error-text="Enter a three digit integer" helper-text="How much wood could a woodchuck chuck?" validate-on="blur" pattern="\d{3}" required ></pf-text-input> <pf-button id="validate">Validate</pf-button>
-
45a1a27:
<pf-text-input>: addedplaceholderattribute
-
1bdc31a:
<pf-accordion>: remove animations which are not present in PatternFly specs -
8e52f62:
<pf-dropdown>: ensure that dropdown menu contents are accessible to keyboard and screen-reader users even when the dropdown or its toggle is disabled. -
02d7e71:
<pf-text-area>: auto-resize attribute now works as expected -
3d7ce5a:
<pf-text-input>: pressingEnterwill request to submit the form -
bdb2b39:
<pf-tabs>: improved screen-reader accessibility -
8e52f62:
<pf-button>: show slotted icon when it is present -
0d92145:
<pf-popover>: deprecatecloseButtonLabelproperty /close-labelattribute in favor ofaccessibleCloseLabelproperty /accessible-close-labelattributeBefore:
<pf-popover close-label="סגירה">...</pf-popover>
After:
<pf-popover accessible-close-label="סגירה">...</pf-popover>
-
a958d52:
<pf-chip-group>: ensures that overflow and close buttons are keyboard accessible via arrow keys -
5371c5b:
<pf-popover>: prevent appearance of an unwanted scrollbar in some cases where popover is positioned at the far edge of the viewport -
Updated dependencies [ac0c376]
-
Updated dependencies [d4e5411]
-
Updated dependencies [1d89f73]
-
Updated dependencies [3766961]
-
Updated dependencies [c71bbe5]
-
Updated dependencies [c71bbe5]
-
Updated dependencies [0d92145]
-
Updated dependencies [24d43bd]
-
Updated dependencies [fa50164]
-
Updated dependencies [de4cfa4]
-
Updated dependencies [fa50164]
-
Updated dependencies [e62244f]
-
Updated dependencies [0d92145]
-
Updated dependencies [24d43bd]
-
Updated dependencies [fa50164]
-
Updated dependencies [50f462c]
- @patternfly/pfe-core@3.0.0
-
cf5abb548: ✨ Added
<pf-banner><pf-banner variant="info" icon="info" sticky> Important information. </pf-banner>
-
23bf9b278: ✨ Added
<pf-table><pf-table> <pf-thead> <pf-tr> <pf-th>Repositories</pf-th> <pf-th>Branches</pf-th> <pf-th>Pull requests</pf-th> <pf-th>Workspaces</pf-th> <pf-th>Last commit</pf-th> </pf-tr> </pf-thead> <pf-tr> <pf-th>one</pf-th> <pf-td>two</pf-td> <pf-td>three</pf-td> <pf-td>four</pf-td> <pf-td>five</pf-td> </pf-tr> <pf-tr> <pf-th>one - 2</pf-th> <pf-td></pf-td> <pf-td></pf-td> <pf-td>four - 2</pf-td> <pf-td>five - 2</pf-td> </pf-tr> <pf-tr> <pf-th>one - 3</pf-th> <pf-td>two - 3</pf-td> <pf-td>three - 3</pf-td> <pf-td>four - 3</pf-td> <pf-td>five - 3</pf-td> </pf-tr> </pf-table>
This is an initial release, that implements a subset of the features of upstream PatternFly's table component. APIs can be expected to change.
-
c07281813: ✨ Added
<pf-text-input><label> Text Input <pf-text-input></pf-text-input> </label>
-
dcdbce66d:
<pf-tooltip>: addedno-flipandflip-behaviourattributes as in<pf-popover> -
dcdbce66d:
<pf-tooltip>added thetriggerattribute to specify a tooltip-invoking element outside of the tooltip's children.<pf-button id="button">Button</pf-button> <pf-tooltip trigger="button" content="I'm a button!"></pf-tooltip>
-
dcdbce66d: ✨ Added
<pf-progress><pf-progress description="Default" value="33"></pf-progress>
-
b9f86f8af:
<pf-tabs>: addisExpandEventstatic method, to help prevent name conflictsimport { PfTabs } from "@patternfly/elements/pf-tabs/pf-tabs.js"; document.addEventListener("expand", function (event) { if (PfTabs.isExpandEvent(event)) { // a pf-tabs' tab has expanded } });
- 69021bbb4: Restores support for Safari 16.3 (by compiling element sources to ECMAScript 2020)
- dd2d5b713:
<pf-accordion>: fixed focus event triggering incorrect tabindex - da84c1019:
<pf-accordion>: fixed issue with panels collapsing when a child checkbox was toggled. - 343d5979f:
<pf-card>: improved slotted content layout - dcdbce66d:
<pf-tooltip>: marksBaseTooltipand it's stylesheet as deprecated. The files will remain in place until the next major version. - 1723146e6:
<pf-tabs>: corrected the name of theexpandevent in the custom elements manifest
- 91850fbf8: fixed TypeScript typings for react wrappers
- 1924229ea: Generate TypeScript typings for React wrapper components
-
c4170a595: PatternFly elements are now available wrapped in React components. While it was always possible to use PatternFly elements (or any other custom elements) in React apps, this release makes it easier to integrate them into React without the need for cumbersome workarounds to React's poor HTML and DOM support.
Before:
import { useEffect, useState, useRef } from "react"; import "@patternfly/elements/pf-switch/pf-switch.js"; function App() { const [checked, setChecked] = useState(false); const switchRef = useRef(null); useEffect(() => { switchRef.current.checked = checked; }, [switchRef.current, checked]); useEffect(() => { switchRef.current.addEventListener("change", () => setChecked(switchRef.current.checked) ); }, [switchRef.current]); return ( <> <pf-switch ref={switchRef}></pf-switch> </> ); }
After:
import { useState } from "react"; import { Switch } from "@patternfly/elements/react/pf-switch/pf-switch.js"; function App() { const [checked, setChecked] = useState(false); return ( <> <Switch checked={checked} onChange={({ target }) => setChecked(target.checked)} /> </> ); }
- f4a7ae7d7:
<pf-accordion>: update theexpandedIndexDOM property on change - Updated dependencies [7055add74]
- Updated dependencies [a81bcb133]
- @patternfly/pfe-core@2.4.0
- 5f2e653c1:
<pf-tabs>: prevent error when using tabs-panel with certain frameworks or imperative javascript code
- 78f3333c5:
<pf-tabs>: fixed style regression on tab when a slotted icon is not present - 2ba0b4360:
<pf-popover>: prevent memory leak by removing event listeners event on popover close
- 12c59e9ac:
<pf-icon>: allowgetIconUrlto return a string, permitting users to import icons from 'bare module specifiers'.
- c5d95880c:
<pf-accordion>: fixed keyboard navigation inside of nested accordions - a2e88b511:
<pf-tabs>: fix vertical alignment of slotted icons - 12c59e9ac:
<pf-icon>: use fontawesome 5 icons. NOTE: imports from@patternfly/elements/pf-icon/icons/are deprecated and will be removed in the next major version. - 6adf530c4:
<pf-tabs>: prevent error when using in certain javascript frameworks - 881c8a505:
<pf-timestamp>: improved performance by using browser-standard features to calculate relative time - Updated dependencies [c5d95880c]
- @patternfly/pfe-core@2.3.1
-
78c8e4416: ✨ Added
<pf-popover><pf-popover heading="Popover heading" body="Popovers are triggered by click rather than hover." footer="Popover footer" > <pf-button>Toggle popover</pf-button> </pf-popover>
-
9266ee5de:
<pf-button>: exposebuttonpart for styling the internal button element
- 5a6683bf9:
<pf-tabs>: improved accessibility for elements extendingBaseTabandBaseTabPanelby assigning random IDs when no exists. - 32eecd6c1:
BaseTab:- fixed Safari focus issue on keyboard navigation
- fixed Safari focus issue on mouse click
- Updated dependencies [78c8e4416]
- Updated dependencies [37c23c398]
- @patternfly/pfe-core@2.3.0
- 0895f5078:
<pf-accordion>: preventedexpandedaccordion headers from stealing focus when the page loads.
- 83024fe5e:
<pf-tabs>: improved keyboard navigation so it correctly activates the focused tab - Updated dependencies [83024fe5e]
- Updated dependencies [83024fe5e]
- @patternfly/pfe-core@2.2.0
- 9fd329e21:
<pf-panel>: fixed raised and bordered variants
- af77424f8:
<pf-accordion>: fixed issue where accent would not display full height if thelargeattribute was set on<pf-accordion>and<pf-accordion-panel>slotted content had padding or margins - caabed634:
<pf-accordion-header>: fixed duplicated/nested headings when slotted heading elements are used instead of theheader-textattribute. - caabed634:
<pf-accordion-header>: fixed brokenheader-tagandheader-textattributes - ed747e98e:
<pf-switch>: documented thechangeevent
- 77ce9f78e:
<pf-clipboard-copy>: prevent component's internal layout from wrapping lines - 708824d46:
<pf-jump-links>: improved accessibility for keyboard users - 5905246fd:
<pf-clipboard-copy>: fixed icon size and input-group CSS styles - Updated dependencies [e45f5eb5a]
- @patternfly/pfe-core@2.1.0
-
2a3048cb6: PatternFly Elements 2.0 is a major rewrite of the project. It brings PFE in-line with PatternFly React in terms of design specs and modernizes the codebase with Lit and TypeScript. It adds a versatile set of tools for managing and building elements, and focuses more on cutting-edge web technologies like form-associated custom elements and CSS shadow parts.
- 🔥 Migrated elements to Lit: initial render made asynchronous.
If your code assumes that shadow DOM is ready once the element is constructed,
ensure you first
await element.updateComplete - ♻️ Reimplemented elements in line with PFv4 design specs
- 🍱 Combined all elements into a single package:
@patternfly/elements - 🥨 Renamed all element prefixes from
pfe-topf-.<!-- BEFORE: --> <pfe-button>Cancel</pfe-button> <!-- AFTER: --> <pf-button>Ok</pf-button>
- ❌ Removed
@patternfly/pfe-stylespackage - ❌ Removed
@patternfly/pfe-sasspackage - ❌ Removed
<pfe-autocomplete>, pending rewrite to<pf-search-input>(#2115). - ❌ Removed
<pfe-collapse> - ❌ Removed
<pfe-dropdown>, pending rewrite to<pf-dropdown>(#2049). - ❌ Removed
<pfe-health-index> - ❌ Removed
<pfe-icon-panel> - ❌ Removed
<pfe-markdown> - ❌ Removed
<pfe-number> - ❌ Removed
<pfe-page-status> - ❌ Removed
<pfe-primary-detail> - ❌ Removed
<pfe-select>, pending rewrite to<pf-select>(#2145). - ❌ Removed
<pfe-toast>
- 🔥 Migrated elements to Lit: initial render made asynchronous.
If your code assumes that shadow DOM is ready once the element is constructed,
ensure you first
-
2e3504582: ✨ Added
<pf-accordion>and removed<pfe-accordion>. Accordion now closely follows PatternFly design specs.<pf-accordion> <pf-accordion-header expanded> <h3>Getting Started</h3> </pf-accordion-header> <pf-accordion-panel> <p> Read our <a href="/get-started/">Getting started</a> page to learn how to install and use PatternFly Elements. </p> </pf-accordion-panel> <pf-accordion-header> <h3>HTML APIs</h3> </pf-accordion-header> <pf-accordion-panel> <p> For more information on how to use each PatternFly element, read the <a href="/components/">component docs</a>. </p> </pf-accordion-panel> </pf-accordion>
- ❌ Removed
pfe-accordion:change,pfe-accordion:expand, andpfe-accordion:collapseevent. Usechange,expandandcollapseinstead - ❌ Removed
color,disclosure,contextattributes - ❌ Removed
historyattribute and router - ❌ Removed
--pfe-*CSS custom properties in favour of--pf-*ones. See PFv4 docs.
There are more changes than these, including breaking changes. See the docs for more info.
- ❌ Removed
-
7fc74861b: ✨ Added
<pf-avatar>and removed<pfe-avatar>. Avatar now closely follows PatternFly design specs.- ✨ Added
borderandaltattributes
<pf-avatar alt="shadowman" border="dark"></pf-avatar> <pf-avatar alt="Michael Clayton" src="https://clayto.com/2014/03/rgb-webgl-color-cube/colorcube.jpg" ></pf-avatar>
- ❌ Removed
name,pattern, andshapeattributes - ❌ Removed
pfe-avatar:connectedevent. Useawait pfeAvatar.updateCompleteinstead - ❌ Removed
pfe-avatar:options-shown,pfe-avatar:option-cleared,pfe-avatar:search-event, andpfe-avatar:option-selectedevents. - ❌ Removed
--pfe-*CSS custom properties in favour of--pf-*ones. See ones. See ones. See ones. See ones. See ones. See ones. See ones. See PFv4 docs.
There are more changes than these, including breaking changes. See the docs for more info.
- ✨ Added
-
401929054: ✨ Added
<pf-badge>and removed<pfe-badge>. Badge now closely follows PatternFly design specs.<pf-badge number="7">7</pf-badge> <pf-badge threshold="10" number="7" state="unread">7</pf-badge>
- 💱 Changed the value of
stateattribute toreadorunread - ❌ Removed
--pfe-*CSS custom properties in favour of--pf-*ones. See PFv4 docs.
There are more changes than these, including breaking changes. See the docs for more info.
- 💱 Changed the value of
-
fc37c570f: ✨ Added
<pf-button>and removed<pfe-button>. Button now closely follows the PatternFly design specs.<pf-button disabled>Cancel</pf-button> <pf-button>Submit</pf-button> <pf-button type="reset">Reset</pf-button>
<pf-button>is a form-associated custom element, and may require the element-internals polyfill- ✨ Added
iconCSS part - ✨ Added
warning,link, andcontrolvariants - ✨ Added
iconandloadingattributes - ✨ Added
plain,block,warningandloadingattributes
- ❌ Removed
dangervariant in favour of a newdangerattribute. - ❌ Removed
pfe-button:clickevent - useclickinstead - ❌ Removed
--pfe-*CSS custom properties in favour of--pf-*ones. See PFv4 docs.
There are more changes than these, including breaking changes. See the docs for more info.
- ✨ Added
-
04954ab7a: ✨ Added
<pf-card>and removed<pfe-card>. Card now closely follows the PatternFly design specs.<pf-card> <h2 slot="header">Card header</h2> <p>This is the pf-card body.</p> <a href="#" slot="footer">Footer link</a> </pf-card>
- ✨ Added
header,body, andfooterCSS parts - ✨ Added
rounded,full-height, andplainattributes
- ❌ Removed
--pfe-*CSS custom properties in favour of--pf-*ones. See PFv4 docs. - ❌ Removed
pfe-card--headerandpfe-card--footerslots. Useheaderandfooterinstead - ❌ Removed
imgSrcandborderattributes. - 💱 Changed
sizeattribute values<!-- BEFORE --> <pfe-card size="small"></pfe-card> <!-- AFTER --> <pf-card size="compact"></pf-card> <pf-card size="large"></pf-card>
There are more changes than these, including breaking changes. See the docs for more info.
- ✨ Added
-
f7ae83f2a: ✨ Added
<pf-clipboard-copy>and removed<pfe-clipboard>. Clipboard copy now closely follows the PatternFly design spec.<pf-clipboard-copy>Content to copy</pf-clipboard-copy>
- ❌ Removed
--pfe-*CSS custom properties in favour of--pf-*ones. See PFv4 docs. role="button"andtabindex=0attributes must no longer be applied to<pf-clipboard-copy>, make sure all instances on your page are updated- <pfe-clipboard role="button" tabindex="0"></pfe-clipboard> + <pf-clipboard-copy>Copy this</pf-clipboard-copy>
There are more changes than these, including breaking changes. See the docs for more info.
- ❌ Removed
-
e64908c5c: ✨ Added
<pf-code-block>and removed<pfe-codeblock>. Code block now closely follows the PatternFly design spec.<pf-code-block> <script type="application/openshift"> apiVersion: helm.openshift.io/v1beta1/ kind: HelmChartRepository metadata: name: azure-sample-repo0oooo00ooo spec: connectionConfig: url: https://raw.githubusercontent.com/Azure-Samples/helm-charts/master/docs </script> </pf-code-block>
- ❌ Removed
--pfe-*CSS custom properties in favour of--pf-*ones. See PFv4 docs.
There are more changes than these, including breaking changes. See the docs for more info.
- ❌ Removed
-
4cd609765: ✨ Added
<pf-icon>and removed<pf-icon>. Icon now closely follows the PatternFly design spec.Icon now ships with the entire free Font Awesome collection as well as the patternfly icon set.
<pf-icon icon="award" aria-label="Awards"></pf-icon>
- 💱 icon names are no longer prefixed by their set. use the
setattribute instead.<!-- BEFORE --> <pfe-icon icon="patternfly-ansible"></pfe-icon> <!-- AFTER --> <pf-icon set="patternfly" icon="ansible"></pf-icon>
There are more changes than this, including breaking changes. Read the docs for more info.
- 💱 icon names are no longer prefixed by their set. use the
-
915d16357: ✨ Added
<pf-jump-links>and removed<pfe-jump-links>. Jump Links now closely follows the PatternFly design spec.<pf-jump-links vertical expandable expanded label="Jump to section" scrollable-element="post-container" > <pf-jump-links-item id="1" href="#heading-1">Heading 1</pf-jump-links-item> <pf-jump-links-item id="2" href="#heading-2">Heading 2</pf-jump-links-item> <pf-jump-links-item id="3" href="#heading-3">Heading 3</pf-jump-links-item> <pf-jump-links-item id="4" href="#heading-4">Heading 4</pf-jump-links-item> <pf-jump-links-item id="5" href="#heading-5">Heading 5</pf-jump-links-item> </pf-jump-links>
- ❌ Removed
pfe-jump-links-panel:active-navItemandpfe-jump-links-nav:stuckevents - ❌ Removed
--pfe-*CSS custom properties in favour of--pf-*ones. See PFv4 docs.
There are more changes than these, including breaking changes. See the docs for more info.
- ❌ Removed
-
3721d37a4: ✨ Added
<pf-modal>and removed<pfe-modal>. Modal now closely follows the PatternFly design spec.<pf-modal> <h2 slot="header">Modal with a header</h2> <p>Modals can contain arbitrary content</p> <a slot="footer" href="#bar">Learn more</a> </pf-modal>
- ✨ Added
overlay,dialog,content,description,header,footer, andclose-buttonCSS parts - ✨ Added
position="top"attribute - ✨ Added
descriptionslot
<pf-modal>now implements theHTMLDialogElementinterface. As such, a number of element APIs have changed:- 💱 Renamed the private
isOpenproperty toopenand make it public, and make it reflect to theopenattribute - 💱 Renamed the
open()method toshow() - ✨ Added
showModal()as an alias ofshow() - ✨ Added a
cancelevent, distinguishing betweencloseandcancelevents - ✨ Added a
returnValueproperty, which can be set by passing a string toclose(returnValue)
- ❌ Removed
pfe-modal:openevent. Useopen - ❌ Removed
pfe-modal:closeevent. Useclose - ❌ Removed
widthattribute in favour ofvariant - Passing an event to
open()andtoggle()no longer assigns the trigger element. usesetTrigger(triggerElement)instead, or set thetriggerattribute to the id of a trigger element in the same root as the modal. - ❌ Removed
--pfe-*CSS custom properties in favour of--pf-*ones. See PFv4 docs. - ❌ Removed the
triggerslot. Use thetriggerattribute instead, or thesetTrigger,toggle, orshowModalmethods.- <pfe-modal> + <pf-modal trigger="trigger-modal"> - <pfe-button slot="trigger"><button>Open Modal</button></pfe-button> <p>Modals can have content</p> - </pfe-modal> + </pf-modal> + <p>Arbitrary content can intervene between modals and their triggers.</p> + <pf-button id="trigger-modal">Open Modal</pfe-button>
There are more changes than this, including breaking changes. See docs for more info
- ✨ Added
-
d4a99f6c2: ✨ Added
<pf-panel>and removed<pfe-band>.<pf-panel> <h3 slot="header">Header content</h3> <p>Main content</p> <p slot="footer">Footer content</p> </pf-panel>
This change is breaking. See the docs for more info.
-
2e3504582: ✨ Added
<pf-progress-stepper>and removed<pfe-progress-steps>. Progress stepper now closely follows PatternFly design spec.<pf-progress-stepper> <pf-progress-step variant="success">Completed</pf-progress-step> <pf-progress-step variant="warning">Issue</pf-progress-step> <pf-progress-step variant="danger">Failure</pf-progress-step> <pf-progress-step current variant="info">Running</pf-progress-step> <pf-progress-step>Last</pf-progress-step> </pf-progress-stepper>
- ❌ Removed
--pfe-*CSS custom properties in favour of--pf-*ones. See PFv4 docs.
There are more changes than these, including breaking changes. See the docs for more info.
- ❌ Removed
-
d4a99f6c2: ✨ Added
<pf-spinner>and removed<pfe-progress-indicator>. Spinner now closely follows PatternFly design spec.<!-- BEFORE --> <pfe-progress-indicator indeterminate>Loading...</pfe-progress-indicator> <!-- AFTER --> <pfe-spinner>Loading...</pfe-spinner>
See docs for more info
-
11ca3a065: ✨ Added
<pf-switch>, a control that toggles the state of a setting between on and off.<form> <pf-switch id="color-scheme-toggle"></pf-switch> <label for="color-scheme-toggle" data-state="on">Dark Mode</label> <label for="color-scheme-toggle" data-state="off" hidden>Light Mode</label> </form>
Switches provide a more explicit, visible representation on a setting than checkboxes.
<pf-switch>is a form-associated custom element, and may require the element-internals polyfillRead the docs for more info.
-
2a3048cb6: ✨ Added
<pf-tabs>and removed<pfe-tabs>. Tabs now closely follows PatternFly design spec.<pf-tabs> <pf-tab id="users" slot="tab">Users</pf-tab> <pf-tab-panel>Users</pf-tab-panel> <pf-tab slot="tab">Containers</pf-tab> <pf-tab-panel>Containers <a href="#">Focusable element</a></pf-tab-panel> <pf-tab slot="tab">Database</pf-tab> <pf-tab-panel>Database</pf-tab-panel> </pf-tabs>
- ✨ Added
container,tabs-container,tabsandpanelsCSS parts - ✨ Added
button,iconandtextCSS parts to<pf-tab> - ✨ Added
containerCSS part to<pf-tab-panel>
- Removed
--pfe-*CSS custom properties in favour of--pf-*ones. See PFv4 docs.
There are more changes than these, including breaking changes. See the docs for more info.
- ✨ Added
-
d4a99f6c2: ✨ Added
<pf-tile>.<pf-tile selected stacked="lg"> <h3 slot="title">Selected</h3> <pf-icon slot="icon" icon="plus"></pf-icon> <p> Selected tiles use colour, borders, & position to indicate their state </p> </pf-tile>
Read more in the docs.
-
719951cfd: ✨ Added
<pf-timestamp>and removed<pfe-datetime>. Timestamp now closely follows PatternFly design spec.<pf-timestamp date="Mon Jan 2 15:04:05 EST 2006" date-format="long"> </pf-timestamp>
- ❌ Removed
--pfe-*CSS custom properties in favour of--pf-*ones. See PFv4 docs.
There are more changes than these, including breaking changes. See the docs for more info.
- ❌ Removed
-
3c5d906db: ✨ Added
<pf-label>.<p>Some Text <pf-label color="red">Your label text here</pf-label></p>
<pf-label>is an inline-block element component that provides a distinct visual style for metadata in a UI. Commonly used as visual representations for tags, labels can include an optional icon and are available in a solid and outline style variant.See the docs for more info.
-
cd55e465b: ✨ Added
<pf-tooltip><pf-tooltip content="Use the content attribute or slot">Tooltip</pf-tooltip>
- 1af2749db:
<pf-tabs>: improved accessibility- added
manualboolean attribute which enables manual tab activation option.
- added
- 67c3c351b: improved performance when loading individual elements
- 484fa68e6: Fixed
.module export - 20d0bf907: Added element entrypoints to package.json
- 5d3315fd4: Prepared release candidate
- 8a1ba2b65:
<pf-icon>: add icons to package exports - 530ef7155:
<pf-tabs>: integrated overflow controller. - Updated dependencies [530ef7155]
- Updated dependencies [e8788c7214]
- Updated dependencies [2e1fb5705]
- Updated dependencies [5d3315fd4]
- @patternfly/pfe-core@2.0.0
- 67c3c351b: improved performance when loading individual elements
- 530ef7155:
<pf-tabs>: integrated overflow controller. - Updated dependencies [530ef7155]
- Updated dependencies [2e1fb5705]
- @patternfly/pfe-core@2.0.0-rc.2
- 8a1ba2b65:
<pf-icon>: add icons to package exports
- 1af2749db:
<pf-tabs>: improved accessibility- added
manualboolean attribute which enables manual tab activation option.
- added
- 484fa68e6: Fixed
.module export
- 20d0bf907: Added element entrypoints to package.json
- 5d3315fd: Prepared release candidate
- Updated dependencies [5d3315fd]
- @patternfly/pfe-core@2.0.0-rc.1