Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions CHANGELOG.MD
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
## July 27, 2026

- **Feature** Re-style Formio components; ensure BC Gov components work properly [🎟️ DEP-276](https://citz-gdx.atlassian.net/browse/DEP-276)
- Ensured all Formio imports come from the same package, which means all components are brought into the same runtime when using Formio.use(). This fixes an issue where some components were unable to render certain other components as children.
- Updated Formio component styles to match BC Gov design system, including button sizes, focus states, and other visual elements. This ensures a consistent look and feel across the application. Also imported some style overrides from the CHEFS frontend.
- Created custom overrides to ensure focus states and buttons feel at home within DEP.
- Added focusability for buttons that lacked tabindex and aria roles, improving accessibility for keyboard and screen reader users.
- Removed kludged Bootstrap styles and imported Bootstrap SCSS directly into the Formio SCSS file, allowing for better control over styling and ensuring Bootstrap does not overwrite outer components.
- Removed buggy Typescript declarations for Formio.Utils; import directly from Formio instead
- Moved admin survey preview page; adjusted link name

## July 09, 2026

- **Chore** Removed French as a required language for multi-language engagements [🎟️ DEP-321](https://citz-gdx.atlassian.net/browse/DEP-321)
Expand Down
10 changes: 9 additions & 1 deletion web/config/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,13 @@ module.exports = function exports (webpackEnv) {
loader: require.resolve(preProcessor),
options: {
sourceMap: true,
...(preProcessor === 'sass-loader' && { api: 'modern' }),
...(preProcessor === 'sass-loader' && {
api: 'modern',
sassOptions: {
// Suppress Sass deprecation warnings emitted when importing bootstrap
silenceDeprecations: ['import'],
},
}),
},
}
);
Expand Down Expand Up @@ -394,6 +400,8 @@ module.exports = function exports (webpackEnv) {
// Alias lodash to lodash-es for better tree-shaking
lodash: 'lodash-es',
keycloak: 'keycloak-js',
// Force all Formio imports (including subpaths) to use one runtime instance.
formiojs: path.resolve(__dirname, '../node_modules/formiojs'),
// Alias engagements folder for easier imports
engagements: path.resolve(__dirname, '../src/components/engagement'),
// Support React Native Web
Expand Down
20 changes: 20 additions & 0 deletions web/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
"babel-plugin-named-asset-import": "^0.3.8",
"babel-preset-react-app": "^10.0.1",
"bfj": "^9.1.2",
"bootstrap": "^5.3.8",
"browserslist": "^4.18.1",
"camelcase": "^9.0.0",
"case-sensitive-paths-webpack-plugin": "^2.4.0",
Expand Down
1 change: 0 additions & 1 deletion web/src/@types/react-formio.d.ts

This file was deleted.

Loading
Loading