Skip to content

web: fix close button position in dismissible alert

Warren Gifford requested to merge vb/dismissible-alert-story into main

Created by: valerybugakov

Description

Fixed the alignment of the close button for the one-line dismissible alert. Closes https://github.com/sourcegraph/sourcegraph/issues/21693.

Changes

  • Converted DimissibleAlert styles into a CSS module.
  • Fixed close button position for the one-line DismissibleAlert.
  • Added DismissibleAlert.story.tsx.
  • Removed redundant alert class name passed to DismissibleAlert as a prop.

Screenshots

One-line alert:

Screenshot 2021-06-04 at 09 59 48

Multiline alert:

Screenshot 2021-06-04 at 09 59 56

Merge request reports

Loading