Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: prepare release #1534

Merged
merged 1 commit into from
Apr 22, 2024
Merged

chore: prepare release #1534

merged 1 commit into from
Apr 22, 2024

Conversation

github-actions[bot]
Copy link
Contributor

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

@rhds/elements@1.4.0

Minor Changes

  • fecdcbf: <rh-codeblock>: added line numbers

  • fecdcbf: ✨ Added <rh-site-status>

    Website status communicates the operational status of a website or domain using a status icon and link. It is usually located in the Footer component.

    <rh-site-status></rh-site-status>
  • fecdcbf: ✨ Added <rh-back-to-top>.

    Back to top component is a fragment link that allows users to quickly navigate to the top of a lengthy content.

    <rh-back-to-top href="#top">Back to top</rh-back-to-top>
  • fecdcbf: ✨ Added <rh-skip-link>.

    A skip link is used to skip repetitive content on a page. It is hidden by default and can be activated by hitting the "Tab" key after loading/refreshing a page.

    <rh-skip-link>
      <a href="#main-content">Skip to main content</a>
    </rh-skip-link>
  • fecdcbf: ⚛️ Added React wrapper components

    You can now more easily integrate RHDS elements into your React apps by importing our wrapper components

    First, make sure that you list @lit/react as a dependency in your project

    npm install --save @lit/react

    Then import the element components you need and treat them like any other react component

    import { Tabs } from '@rhds/elements/react/rh-tabs/rh-tabs.js';
    import { Tab } from '@rhds/elements/react/rh-tabs/rh-tab.js';
    import { TabPanel } from '@rhds/elements/react/rh-tabs/rh-tab-panel.js';
    
    import { useState } from 'react';
    
    const tabs = [
      { heading: 'Hello Red Hat', content: 'Let\'s break down silos' },
      { heading: 'Web components', content: 'They work everywhere' }
    ];
    
    function App() {
      const [index, setExpanded] = useState(-1);
      return (
        <span>expanded {expanded}</span>
        <Tabs>{tabs.map(({ heading, content }, i) => (
          <Tab slot="tab" onExpand={() => setExpanded(i)}>{heading}</Tab>
          <TabPanel>{content}</TabPanel>))}
        </Tabs>
      );
    }
  • fecdcbf: <rh-codeblock>: added Show more toggle

  • fecdcbf: <rh-codeblock>: added copy and wrap actions, with localizable slots for the button labels

    <rh-code-block actions="wrap copy">
      <span slot="action-label-copy">Copy to Clipboard</span>
      <span slot="action-label-copy" hidden data-code-block-state="active"
        >Copied!</span
      >
      <span slot="action-label-wrap">Toggle word wrap</span>
      <span slot="action-label-wrap" hidden data-code-block-state="active"
        >Toggle overflow</span
      >
      <script type="text/css">
        :host {
          display: block;
        }
      </script>
    </rh-code-block>

Patch Changes

  • fecdcbf: <rh-menu>: improved focus accessibility for keyboard navigation users on firefox
    <rh-button>: improved focus accessibility on firefox
  • fecdcbf: <rh-accordion>: added a accents slot with placement options as inline and bottom
  • fecdcbf: Context: aligned context implementation with updated protocol defintions
  • fecdcbf: Update dependencies, including Lit version 3
  • fecdcbf: <rh-alert>: make sure alerts always have to correct (lightest) colour palette
  • fecdcbf: <rh-tabs>: allow tabs with long text content to fit into different-sized containers

Copy link

netlify bot commented Apr 22, 2024

Deploy Preview for red-hat-design-system ready!

Name Link
🔨 Latest commit dbdf4ea
🔍 Latest deploy log https://app.netlify.com/sites/red-hat-design-system/deploys/66267af0f0f60e0008ae5c0b
😎 Deploy Preview https://deploy-preview-1534--red-hat-design-system.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@nikkimk nikkimk self-requested a review April 22, 2024 15:02
Copy link
Collaborator

@nikkimk nikkimk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Little goombas torment Mario

@nikkimk nikkimk enabled auto-merge (squash) April 22, 2024 15:08
@nikkimk nikkimk merged commit b3bd6fe into main Apr 22, 2024
6 checks passed
@nikkimk nikkimk deleted the changeset-release/main branch April 22, 2024 15:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done ☑️
Development

Successfully merging this pull request may close these issues.

None yet

1 participant