@cdssnc/gcds-components-angular
Advanced tools
Changelog
Released on: 2024-05-08
We've undertaken significant efforts to migrate our components to form-associated custom elements. GC Design System form components will now use the shadow DOM (document object model). The shadow DOM provides improved encapsulation and control over styling and lets form components integrate with native browser features for validation and accessibility. This feature depends on HTMLElement API attachInternals which is supported in most browsers.
This change will require all form components to have the name attribute. Here's a list of the GC Design System components affected by the change:
gcds-file-uploader
)gcds-input
)gcds-select
)gcds-textarea
)name
attribute<gcds-file-uploader name="" uploader-id="" label=""></gcds-file-uploader>
<gcds-input name="" input-id="" label=""></gcds-input>
<gcds-select name="" select-id="" label=""></gcds-select>
<gcds-textarea name="" textarea-id="" label=""></gcds-textarea>
The following components will be updated to now use the shadow DOM like other GC Design System components:
gcds-pagination
)gcds-search
)gcds-signature
)As part of the transition, our gcds-radio
component will be deprecated in favour of a new component gcds-radio-group
. The radio group component allows for better (native HTML) form controls in a shadow DOM environment.
<gcds-radio
radio-id="radio-1"
name="radio-example"
label="Label 1"
value="label-1"
>
</gcds-radio>
<gcds-radio
radio-id="radio-2"
name="radio-example"
label="Label 2"
value="label-2"
>
</gcds-radio>
<gcds-radio-group
name="radio-example"
options="[{
'id': 'radio-1',
'label': 'Label 1',
'value': 'label-1'}, {
'id': 'radio-2',
'label': 'Label 2',
'value': 'label-2'}]"
>
</gcds-radio-group>
Changelog
v0.19.0
Changelog
v0.17.1
https://github.com/cds-snc/gcds-components/pull/346 - 16732e5 - Update stencil build configuration for better integration with multiple frameworks (Nextjs and create-react-app)
https://github.com/cds-snc/gcds-components/pull/350 - 2f41435 - fix: change slot styles to initial
https://github.com/cds-snc/gcds-components/pull/351 - d03c792 - Update demo content
Changelog
v0.15.0
gcds-text
component to render text content in GCDS stylegcds-sr-only
component to hide text content only available to assistive technologiesgcds-pagination
gcds-header
gcds-signature
Changelog
v0.14.0
gcds-topic-menu
component for canada.ca compliancegcds-pagination
columns
property to required in gcds-grid
gcds-details
gcds-nav-group