haiilo / catalyst

A framework agnostic design system and component library based on web components and SCSS.
https://haiilo.github.io/catalyst/
MIT License
7 stars 6 forks source link

cat-datetime, cat-date and cat-time have no exported attributes #518

Closed finnfabians closed 1 month ago

finnfabians commented 1 month ago

The cat-datetime, cat-date and cat-time elements are lacking all exported attributes when imported in our front-end.

image
src/app/widgets/user-rotation/user-rotation-widget-settings/user-rotation-widget-settings.component.html:15:15 - error NG8002: Can't bind to 'label' since it isn't a known property of 'cat-date'.
1. If 'cat-date' is an Angular component and it has 'label' input, then verify that it is part of this module.
2. If 'cat-date' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.
3. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component.

15     <cat-date [label]="'WIDGET.USERROTATION.DATE' | translate"></cat-date>
                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  src/app/widgets/user-rotation/user-rotation-widget-settings/user-rotation-widget-settings.component.ts:19:16
    19   templateUrl: './user-rotation-widget-settings.component.html',
                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Error occurs in the template of component UserRotationWidgetSettingsComponent.
ddoe8 commented 1 month ago

@fynnfeldpausch It seems that this ticket already relates to what we talked about the label. Should I still create a ticket to focus on the a11y side of it or is this one sufficient?

fynnfeldpausch commented 1 month ago

@ddoe8 no, this is another issue