Commit 70c3128
committed
feat: complete HDS 4.8.0 upgrade and HCRC 2.0.0 release
HCRC-178
The HCRC library was updated to major version 2.0.0 following the complete migration and upgrade to Helsinki Design System (HDS) version 4.8.0.
### Component Migrations and Refactors:
* The carousel button was refactored and migrated to the new HDS button component.
* The Tag component was migrated to utilize the new HDS styles.
* The URL for the City of Helsinki logo in stories was updated for the Link component.
* Trivial coloring fixes were applied to PageSection stories.
### Component Logic and Styling Fixes:
* **Tag `onClick` Logic:** The `onClick` handler was updated to be definable as `undefined`. This resolves a styling issue concerning border display and removes a needless decorator, allowing the direct use of the HDS `onClick` property.
* **Tag Multiline Text:** Default Tag styling was adjusted to support multiline text, overriding the HDS v4 default of `white-space: nowrap` which prevented necessary text wrapping.
### Environment and Configuration Fixes:
* Availability of the **`Buffer` object was ensured** in all required environments.
* The **type of the load more button theme** was corrected in the configuration.
### Design Token Update:
* The `hds-design-tokens` package was updated.
### Testing and Utilities Improvements:
* **Test Utilities:**
* A `hideConsoleMessages` utility was added to suppress non-essential console output during testing.
* `act` warnings were resolved by converting affected tests to an asynchronous format.
* Apollo messages are now always loaded during testing.
* Comments were added to clarify console messages that are being hidden.
### Versioning and Dependencies:
* The HCRC version was set to 2.0.0, and corresponding dependencies were upgraded.1 parent a9c6276 commit 70c3128
16 files changed
Lines changed: 2070 additions & 897 deletions
File tree
- public
- src
- common/components/tag
- core
- card
- carousel/components
- configProvider
- link
- pageContent
- __tests__
- sidebarContent
- pageSection
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
8 | 21 | | |
9 | 22 | | |
10 | 23 | | |
11 | 24 | | |
12 | 25 | | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
| 51 | + | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
| 87 | + | |
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
114 | | - | |
| 114 | + | |
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
| 144 | + | |
144 | 145 | | |
145 | | - | |
| 146 | + | |
146 | 147 | | |
147 | 148 | | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
156 | | - | |
| 156 | + | |
0 commit comments