grommet/grommet

[TS] Undocumented theme option `defaultMode` missing from TypeScript definitions

Open

#4 607 ouverte le 14 oct. 2020

Voir sur GitHub
 (4 commentaires) (0 réactions) (0 assignés)JavaScript (8 247 stars) (1 015 forks)batch import
documentationgood first issuetypescript

Description

Expected Behavior

defaultMode is used in Grommet component along with themeMode prop to determine initial theme mode between dark and light themes. As this property is used by Grommet Theme Designer, Grommet HPE Theme and in HPE Design System I would expect it to be documented and included in the TypeScript definitions.

Actual Behavior

defaultMode is not documented and not included in TS definisions, resulting in an error when used

  • Grommet version: 2.15.2

Guide contributeur