digitransit-ui/digitransit-component/packages/digitransit-component-dialog-modal
Vesa Meskanen 882476fe42 fix: unify theme color handling in component libraries
Digitransit components got 4 different color props, all containing static values.
Default prop values were hard coded in all components. Some theme colors were not available.
Now a sigle 'colors' prop which contains all required colors is used.
Default colors are imported from a single place in Icon library.

Some other prop refactoring is also included in this commit.
2026-01-12 15:05:08 +02:00
..
src fix: unify theme color handling in component libraries 2026-01-12 15:05:08 +02:00
index.js chore: in NODE_ENV=development, use dev bundles with included inline sourcemaps 2022-05-20 14:15:30 +03:00
LICENSE-AGPL.txt feat: create dialog modal 2020-07-16 15:42:53 +03:00
LICENSE-EUPL.txt feat: create dialog modal 2020-07-16 15:42:53 +03:00
package.json fix: unify theme color handling in component libraries 2026-01-12 15:05:08 +02:00
README.md feat: show stop specific arrival times in itinerary view 2020-11-26 11:52:51 +02:00
test.js fix: import path 2020-08-21 10:10:15 +03:00

@digitransit-component/digitransit-component-dialog-modal

DialogModal

General component description in JSDoc format. Markdown is supported.

Parameters

  • $0 Object
    • $0.headerText
    • $0.dialogContent
    • $0.handleClose
    • $0.primaryButtonText
    • $0.primaryButtonOnClick
    • $0.secondaryButtonText
    • $0.secondaryButtonOnClick
    • $0.lang
    • $0.href
    • $0.appElement
    • $0.isModalOpen
    • $0.modalAriaLabel
    • $0.color
    • $0.hoverColor

Examples

<DialogModal />

This module is part of the Digitransit-ui project. It is maintained in the HSLdevcom/digitransit-ui repository, where you can create PRs and issues.

Installation

Install this module individually:

$ npm install @digitransit-component/digitransit-component-dialog-modal

Or install the digitransit-component module that includes it as a class:

$ npm install @digitransit-component/digitransit-component