@cdssnc/gcds-components-angular
Advanced tools
Changelog
Released on: 2024-08-19
The Card and Stepper components have been redesigned and will have some changes in their API structure.
The property type
will be removed as the component will now only support link interactions. If you’re using type=action
, note that this will be unsupported in this release.
The tag
property will be replaced by a new property named badge
.
The property title-element
will be replaced by a new property named card-title-tag
.
We’re dropping support for the footer
slot (slot="footer"
). We’re removing it as we haven’t observed any use of the slot.
New: We’ve introduced a slot
to support the display of HTML text formatting within the Card component. You can still use the description property for this purpose with a simple string value (text) only.
<gcds-card
type="link"
card-title=""
href=""
title-element=""
description=""
tag=""
img-src=""
img-alt=""
>
<slot name=”footer”></slot>
</gcds-card>
<gcds-card
card-title=""
href=""
card-title-tag="a"
description=""
badge=""
img-src=""
img-alt=""
>
<slot></slot>
</gcds-card>
New: A new tag
property will be available to allow the developer to choose the right heading to render the element.
New (required): The stepper will now require text or an element passed into the slot
to display the heading element. It’s a required property and the component will not render without it.
If you experience issues with the change, contact us.
<gcds-stepper
current-step=""
total-steps=""
></gcds-stepper>
<gcds-stepper
current-step=""
total-steps=""
tag=""
>
<slot></slot>
</gcds-stepper>
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>