Skip to content

Latest commit

 

History

History
361 lines (264 loc) · 10.1 KB

CHANGELOG.md

File metadata and controls

361 lines (264 loc) · 10.1 KB

@rhds/elements

1.0.0-beta.18

Patch Changes

  • 38a788c: Alert, Stat, Secondary Nav changes:

    CTA Changes:

    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

1.0.0-beta.17

Patch Changes

  • fe8f11f: Stat: Fixes dark theme font color contrast.
  • 620b59a: Ships the files in lib to npm

1.0.0-beta.16

Major Changes

  • 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>

Minor Changes

  • 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>

Patch Changes

  • 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 with ScreenSizeController
    • 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 into icon
    • initialize properties in class field initializers
  • ac4ef8f: Footer: Main footer logo fills height first
  • d7af072: Changes to <rh-secondary-nav>:
    • BREAKING: replaces variant="dark" attribute with color-palette="darker"
    • replaces internal #textDirection method with DirController implementation for consistent RTL support
    • updates documentation
  • 034e28d: Blockquote: Add design tokens to rh-blockquote's css files

1.0.0-beta.15

Patch Changes

  • 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

1.0.0-beta.14

Minor Changes

  • 8edb3df: Adds rh-secondary-nav

    A non-primary navigation for products and subcategory pages.

    Renames RHDSScreenSizeController to ScreenSizeController and updates references. Updates matchMedia() breakpoints in ScreenSizeController to use min-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>

Patch Changes

  • 4d5a538: Fixes path for light dom CSS in secondary-nav demo

1.0.0-beta.13

Minor Changes

  • 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>

Patch Changes

  • 1a6cfee: Adds missing tslib dependency

1.0.0-beta.12

Patch Changes

  • 17d5bf8: Fixes rh-footer primary columns not being equal.

1.0.0-beta.11

Patch Changes

  • b04d8c8: Include lib directory in npm package

1.0.0-beta.10

Minor Changes

  • bdc1121: Ship components unbundled

Patch Changes

  • c6d26a4: Typescript: Map footer element classes to tagnames

1.0.0-beta.9

Major Changes

  • 58831e0: Adds <rh-global-footer> standalone component

    Global 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.

    RedHat-UX#312

    Fixes double border on mobile.

    RedHat-UX#392

    Removes is-mobile attribute

1.0.0-beta.8

Minor Changes

  • de7fd69: Added rh-context-provider component, which is meant to be used internally within rh-elements shadow templates to override colour context. In rh-dialog, fix the colour context overrides for slotted content. See patternfly/patternfly-elements#2036 (comment) In rh-dialog, changed the attribute variant="video" to type="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>

1.0.0-beta.7

Patch Changes

  • da9ba6d: Remove patch-package dev dependency

1.0.0-beta.6

Patch Changes

  • ce2ce34: Add missing devDependencies which prevent installing the package

1.0.0-beta.5

Patch Changes

  • 5247670: Fixed [bug] <rh-footer> links should be styled to match dark context colors. #307 Fixed the social-links slot to not override the social-links internal rh-footer-links Fixed the social-links hrefs to point to the default RHDC links

1.0.0-beta.4

Minor Changes

  • 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>
        `
      }
    }

Patch Changes

  • fd78f88: Fix <rh-footer> styles when used on redhat.com

1.0.0-beta.3

Patch Changes

  • 69abc30: Include lightdom styles in the package. Prevent custom-element double-registration error by removing pfe-1.0 dependencies.

1.0.0-beta.2

Minor Changes

  • 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>

1.0.0-beta.1

Minor Changes

  • 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>