-
38a788c: Alert, Stat, Secondary Nav changes:
- use design system tokens for consistency and themability
CTA Changes:
- use design system tokens for consistency and themability
- fix CSS values like padding, etc.
Footer Changes:
- use design system tokens for consistency and themability
- fix: fixed primary links grid gap spacing on desktop
- fix: added parts for accordion header/panel
- fe8f11f: Stat: Fixes dark theme font color contrast.
- 620b59a: Ships the files in
lib
to npm
-
8f533e5: - Adds color context decorators and controllers. Affects footer, dialog, CTA, secondary nav, and stat.
-
Adds
<rh-cta>
, a styled link that directs a user to other pages or sometimes displays hidden content.<rh-cta> <a href="/subscribe">Subscribe</a> </rh-cta>
-
-
b940eab: Adds
<rh-tooltip>
element to display floating content.<p> Red Hat Design System is an interoperable <rh-tooltip position="top"> <rh-icon icon="info" aria-label="information"></rh-icon> <span slot="content" >Interoperable components work in any frontend framework, or none</span > </rh-tooltip> set of components with Red Hat branding guidelines built in. </p>
- 1f196b5: Changes to
<rh-stat>
:- BREAKING: remove
@pfelement
decorator - BREAKING: remove
is-mobile
attribute - BREAKING: remove
description
slot, replace with anonymous slot - replace internal
MatchMediaController
withScreenSizeController
- document slots and css properties
- hide empty slots
- make
updateIcons
method private, and refactor it to run on slot change and affect only the icon slotted intoicon
- initialize properties in class field initializers
- BREAKING: remove
- ac4ef8f: Footer: Main footer logo fills height first
- d7af072: Changes to
<rh-secondary-nav>
:- BREAKING: replaces
variant="dark"
attribute withcolor-palette="darker"
- replaces internal
#textDirection
method withDirController
implementation for consistent RTL support - updates documentation
- BREAKING: replaces
- 034e28d: Blockquote: Add design tokens to rh-blockquote's css files
- 0d80240: * Fixes missing font-family stacks when base css isn't applied
- Adds rh-token CSS custom properties for font family stacks
- Fixes regression in spacing for slotted cta
-
8edb3df: Adds
rh-secondary-nav
A non-primary navigation for products and subcategory pages.
Renames
RHDSScreenSizeController
toScreenSizeController
and updates references. UpdatesmatchMedia()
breakpoints inScreenSizeController
to usemin-width
values for standard breakpoints<rh-secondary-nav role="navigation"> <a href="#" slot="logo">Logo</a> <ul slot="nav"> <li><a href="#">Link 1</a></li> <li> <rh-secondary-nav-dropdown> <a slot="link">Link 2</a> <rh-secondary-nav-menu slot="menu"> <rh-secondary-nav-menu-section> <h3 slot="header">Title of Links</h3> <ul slot="links"> <li><a href="#">Link 2.1</a></li> <li><a href="#">Link 2.2</a></li> </ul> </rh-secondary-nav-menu-section> </rh-secondary-nav-menu> </rh-secondary-nav-dropdown> </li> <li><a href="#">Link 3</a></li> </ul> </rh-secondary-nav>
- 4d5a538: Fixes path for light dom CSS in secondary-nav demo
-
ba05def: Add 'rh-blockquote'
A blockquote for displaying quote, author, and author title..
<rh-blockquote color-palette="lightest" align="inline-start" size="default"> <p slot="quote"> In open source, we feel strongly that to really do something well, you have to get a lot of people involved. </p> <span slot="author">Linus Torvalds</span> <span slot="title">Software Engineer</span> </rh-blockquote>
- 1a6cfee: Adds missing
tslib
dependency
- 17d5bf8: Fixes rh-footer primary columns not being equal.
- b04d8c8: Include lib directory in npm package
- bdc1121: Ship components unbundled
- c6d26a4: Typescript: Map footer element classes to tagnames
-
58831e0: Adds
<rh-global-footer>
standalone componentGlobal footer only
<rh-global-footer> ... </rh-global-footer>
Usage in
<rh-footer> ... <rh-global-footer slot="global">...</rh-global-footer> </rh-footer>
Adds font-size initial and em values instead of px values for a11y. Allow user stylesheet to increase and decrease font-size.
Fixes double border on mobile.
Removes
is-mobile
attribute
-
de7fd69: Added
rh-context-provider
component, which is meant to be used internally within rh-elements shadow templates to override colour context. Inrh-dialog
, fix the colour context overrides for slotted content. See patternfly/patternfly-elements#2036 (comment) Inrh-dialog
, changed the attributevariant="video"
totype="video"
, because<pfe-modal>
uses variant for width. -
3248990: Add
rh-stat
An element which can be used to display statistics inside of an app.
<rh-stat size="large" icon="rh-atom"> <span slot="title">Stat Title</span> <span slot="statistic">Stat</span> <span slot="description" >Stat body text that includes two lines and a footnote<sup>2</sup></span > </rh-stat>
- da9ba6d: Remove patch-package dev dependency
- ce2ce34: Add missing devDependencies which prevent installing the package
- 5247670: Fixed [bug]
<rh-footer>
links should be styled to match dark context colors. #307 Fixed thesocial-links
slot to not override thesocial-links
internalrh-footer-links
Fixed thesocial-links
hrefs to point to the default RHDC links
-
e59ecea: Add
RHDSScreenSizeController
import { RHDSScreenSizeController } from '../../lib/RHDSScreenSizeController.js'; export class RhPagination extends LitElement { #screenSize = new RHDSScreenSizeController(this); render() { const { mobile, size } = this.#screenSize; return html` <div id="container" class=${classMap({ mobile, [size as string]: true })}> ... </div> ` } }
- fd78f88: Fix
<rh-footer>
styles when used on redhat.com
- 69abc30: Include lightdom styles in the package. Prevent custom-element double-registration error by removing pfe-1.0 dependencies.
-
b625710: Adds
<rh-footer>
<rh-footer> <a slot="logo" href="/en"> <img alt="Red Hat logo" src="https://static.redhat.com/libs/redhat/brand-assets/2/corp/logo--on-dark.svg" /> </a> <rh-footer-social-link slot="social-links-end" icon="web-icon-github"> <a aria-label="Github" href="#github">Github</a> </rh-footer-social-link> <h3 slot="links">Products</h3> <ul slot="links"> <li><a href="#">Red Hat Ansible Automation Platform</a></li> <li><a href="#">Red Hat Enterprise Linux</a></li> <li><a href="#">Red Hat OpenShift</a></li> <li><a href="#">Red Hat OpenShift Container Storage</a></li> <li><a href="#">Red Hat OpenStack Platform</a></li> <li><a href="#">See all products</a></li> </ul> <h3 slot="links">Tools</h3> <ul slot="links"> <li><a href="#">My account</a></li> <li><a href="#">Customer support</a></li> <li><a href="#">Red Hat OpenShift</a></li> <li><a href="#">Contact training</a></li> <li><a href="#">Red Hat OpenStack Platform</a></li> <li><a href="#">See all products</a></li> </ul> <rh-footer-block slot="main-secondary"> <h3 slot="header">About Red Hat</h3> <p> We’re the world’s leading provider of enterprise open source solutions―including Linux, cloud, container, and Kubernetes. We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge. </p> </rh-footer-block> <rh-footer-block slot="main-secondary"> <h3 slot="header">Subscribe to our free newsletter, Red Hat Shares</h3> <pfe-cta><a href="#blocks">Sign up now</a></pfe-cta> </rh-footer-block> <h3 slot="footer-links-primary" hidden>Red Hat legal and privacy links</h3> <ul slot="footer-links-primary"> <li><a href="#">About Red Hat</a></li> <li><a href="#">Jobs</a></li> <li><a href="#">Events</a></li> <li><a href="#">Locations</a></li> <li><a href="#">Contact Red Hat</a></li> <li><a href="#">Red Hat Blog</a></li> <li><a href="#">Cool Stuff Store</a></li> <li><a href="#">Diversity, equity, and inclusion</a></li> </ul> <rh-footer-copyright slot="footer-links-secondary"></rh-footer-copyright> </rh-footer>
-
b8af17c: Add
<rh-alert>
An alert to display information on a website.
<rh-alert> <h3 slot="header">Default</h3> <p> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam eleifend elit sed est egestas, a sollicitudin mauris tincidunt. </p> <button slot="actions" data-action="dismiss">Dismiss</button> <button slot="actions" data-action="confirm">Confirm</button> </rh-alert>