How to use the @tds/shared-styles.messaging.success function in @tds/shared-styles

To help you get started, we’ve selected a few @tds/shared-styles examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github telus / tds-core / packages / Notification / Notification.jsx View on Github external
({ variant }) => ({
    position: 'relative',
    ...{
      instructional: messaging.standard,
      success: messaging.success,
      error: messaging.error,
      warning: messaging.warning,
      branded: { backgroundColor: colorWhiteLilac },
    }[variant],
  })
)
github telus / tds-core / packages / InputFeedback / InputFeedback.jsx View on Github external
const StyledFeedback = styled(({ feedback, ...rest }) => )(({ feedback }) => ({
  ...borders.rounded,
  ...(feedback === 'success' && messaging.success),
  ...(feedback === 'error' && messaging.error),
  ...(feedback === undefined && messaging.standard),
}))