Oct 15, 2024
  • Ensure content is left aligned by default

    Applies left alignment to content, to ensure consistent alignment even when inside centered layout containers.

Jun 14, 2024
  • Move secondary ButtonIcon tone to icons

    Following the deprecation of the secondary tone of ButtonIcon, this updates all internal usages to apply the secondary tone directly to the icon.

May 24, 2024
  • Add exit animation to Dialog which mirrors the existing entrance animation.

Sep 4, 2023
  • Dialog, Drawer: Adapt max height to available viewport space

    Make use of the new dynamic viewport units for applying a max height to modal elements such as Dialog and Drawer. These new units take into account dynamic browser toolbars that expand and contract as the user scrolls, ensuring the browser interface never obscures the web site content.

    Fix also incorporates fallback for older browsers to use regular viewport units.

Aug 2, 2023
  • Drawer, Dialog: Increase gutter around close button

    Fix for a regression where the gutter around the close button was reduced — resulting in visually clashing with the content when scrolling.

Jun 23, 2023
  • Drawer, Dialog: Support validation blocking closure of modal

    To prevent a Dialog or Drawer from closing, e.g. due to validation, the onClose function can now return false.

    EXAMPLE USAGE:

    <Drawer
      open={open}
      onClose={() => {
        const valid = runValidation();
        if (!valid) {
          return false;
        }
    
        setOpen(false);
      }}
    />
Mar 31, 2023
  • Dialog, Drawer: Reduce space between title and description

    Reducing the space between title and description to small to improve association of the header block content

Nov 9, 2022
  • Support data attribute boolean values

    The data attribute map now supports boolean values. This provides an improvement for the developer experience, no longer having to convert values to strings explicitly.

    EXAMPLE USAGE:

    <Component
      data={{
        'custom-attribute': true,
      }}
    />
    // => <div data-custom-attribute="true" />
Apr 13, 2022
  • Dialog, Drawer: Prevent sticky close button container from blocking content

    Fix regression introduced when migrating the close action to use ButtonIcon. The close action container was blocking the content of the Dialog/Drawer, and when scrolling could prevent a user from interacting with the content as it went behind the container.

    Additionally, re-introduced the surface coloured background behind the button to prevent the button from visually colliding with content when scrolling.

Apr 8, 2022
  • Autosuggest, Dialog, Drawer, OverflowMenu, Tag, TextField, useToast: Migrate to use ButtonIcon

    Adopt new ButtonIcon for clear/close actions in favour of custom internal buttons.

Aug 20, 2021
  • Dialog, Drawer: Support long, unbroken title text

  • Alert, Badge, Button, ButtonLink, ButtonRenderer, Card, Dialog, MenuRenderer, OverflowMenu, Pagination, TooltipRenderer, useToast: Increase border radius using updated borderRadius scale

Jul 8, 2021
  • Dialog, Drawer: Support nested Dialogs & Drawers

    Remove restriction preventing the nesting of modal components, e.g. Dialog and Drawer. While it is still discouraged to keep experiences simple, there is no longer a technical guard against it.

May 19, 2021
  • Add support for data attribute maps on all components.

    EXAMPLE USAGE:

    <Alert
      data={{
        testId: 'message'
      }}
    />
    
    // => <div data-testId="message" />
Oct 1, 2020
  • Dialog: Fix close button to the corner of the dialog when scrolling

  • Autosuggest, Dialog: Lighten backdrop opacity from 0.7 to 0.4

Aug 27, 2020
  • Add Dialog component

    EXAMPLE USAGE:

    <Fragment>
      <Actions>
        <Button onClick={() => setOpen(true)}>Open dialog</Button>
      </Actions>
    
      <Dialog
        title="Dialog Example"
        id={id}
        open={open}
        onClose={setOpen}
      >
        <Placeholder height={100} width="100%" />
      </Dialog>
    </Fragment>

    See the documentation for an exhaustive list of features.