Skip to content
Merged
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
8 changes: 4 additions & 4 deletions docs/migration/alpha-beta.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,14 @@ The prop labelVariant for form-components (input, checkbox, ...) has been rename
| -------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| 🔄 renamed `db-alert` to `db-notification` | renamed `alert` to `notification` and add/changed some additional properties | 1. Replace `DBAlert`, `db-alert` by `DBNotification` / `db-notification`<br/>2. `Link` was removed, add a normal `a` or `DBLink` to the `slotLink`<br/>3. `props.type` has been changed to `props.variant`<br/>4. `onClick` has been changed to `onClose` |
| 🔄 renamed `db-main-navigation` to `db-navigation` | renamed `main-navigation` to `navigation` | Replace `DBMainNavigation`, `db-main-navigation` by `DBNavigation` / `db-navigation` |
| 🔄 changed `db-button` variants | We renamed the variants for the button | `primary` ➡ `brand`<br/>`solid` ➡ `filled`<br/>`text` ➡ `ghost` |
| 🔄 changed `db-card` elevation | We replaced the box-shadow elevation with bg-level | 1. `props.elevation` ➡ `props.elevationLevel` (1,2,3) <br/>2. `props.variant` ➡ `props.behaviour` <br/>3. Removed card-image |
| 🔄 changed `db-button` variants | We renamed the variants for the button | `primary` ➡ `brand`<br/>`solid` ➡ `filled`<br/>`text` ➡ `ghost` |
| 🔄 changed `db-card` elevation | We replaced the box-shadow elevation with bg-level | 1. `props.elevation` ➡ `props.elevationLevel` (1,2,3) <br/>2. `props.variant` ➡ `props.behaviour` <br/>3. Removed card-image |
| 🆕 valid/invalid message form-components | We add additional messages for `required` form-components like `DBInput` etc. | Use `validMessage="XXX"` and `invalidMessage="XXX"` to display the required information for form-components. Otherwise you will see a default message with a `TODO: ...` |
| 🔄 changed `db-link` variant | We renamed the variants for the link | `primary` ➡ `brand` |
| 🔄 changed `db-link` variant | We renamed the variants for the link | `primary` ➡ `brand` |
| ❌ removed `data-variant="information/critical/..."` for form-components like `input`, `select` and `textarea` | We don't support the colors changes anymore. Use `required`, `pattern`, `min` etc. to trigger `user-valid` for green and red components | `data-variant` changes the label variant now |
| 🔄 changed `db-accordion` title | We replaced `title` with `headlinePlain` because there is already a html default `title`, which caused trouble | Rename `title` to `headlinePlain` or use the slot `headline` |
| ❌ removed prop `areaPopup` from `db-navigation-item` | We no longer support opening sub-navigations from via prop. | There is no alternative at the moment. |
| 🔄 changed `db-header` slot names | The slot names for "action" containers changed | 1. `callToAction` ➡ `primaryAction` <br/>2. `actionBar` ➡ `secondaryAction` |
| 🔄 changed `db-header` slot names | The slot names for "action" containers changed | 1. `callToAction` ➡ `primaryAction` <br/>2. `actionBar` ➡ `secondaryAction` |
| 🔄 renamed `size` & `variant` in `db-section` | The properties `size` and `variant` in `db-section` were renamed to `spacing` & `width` to align it with other components | Search for every `db-section` and replace `size` with `spacing` and `variant` with `width` |

### React
Expand Down
12 changes: 6 additions & 6 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@
"playwright-core": "1.56.1",
"postcss": "8.5.6",
"postcss-cli": "11.0.1",
"prettier": "3.6.2",
"prettier": "3.7.3",
"prettier-plugin-organize-imports": "4.3.0",
"prettier-plugin-pkg": "0.21.2",
"publint": "0.3.15",
Expand Down
4 changes: 2 additions & 2 deletions packages/agent-cli/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ _version bump_
### Patch Changes

- chore: update instructions files for better copilot outputs - [see commit e4bc905](https://github.com/db-ux-design-system/core-web/commit/e4bc90508479387371d816d5776f9f568aa5fb82):
- fix: add some missing variables
- fix: add some missing variables

## 4.0.1

Expand All @@ -59,4 +59,4 @@ _version bump_
### Patch Changes

- enabled [`@db-ux/agent-cli`](https://www.npmjs.com/package/@db-ux/agent-cli) for every package - [see commit 0233048](https://github.com/db-ux-design-system/core-web/commit/023304869e61f5a506dca66a22d69e5f3d70f4d0):
- auto-generate/auto-update `.github/copilot-instructions.md`, to ensure GitHub Copilot uses DB UX Components for code generation
- auto-generate/auto-update `.github/copilot-instructions.md`, to ensure GitHub Copilot uses DB UX Components for code generation
30 changes: 15 additions & 15 deletions packages/components/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@ _version bump_
- refactor(notification): update and simplify grid layout for block link variant - [see commit cb83f96](https://github.com/db-ux-design-system/core-web/commit/cb83f966eaf29c85b4cf0079750bdd563f216d6e)

- fix(DBCustomSelect): properly announce selected options - [see commit 773edeb](https://github.com/db-ux-design-system/core-web/commit/773edeb943a085eb79e1c8d59059137b2830fbf0):
- feat(DBCustomSelect): introduce new property `selectedPrefix`
- feat(DBCustomSelect): introduce new property `selectedPrefix`

### Patch Changes

- fix(DBCustomSelect): automatically handle form reset events - [see commit 6af5246](https://github.com/db-ux-design-system/core-web/commit/6af5246b3b2e6febdc6ff6342ba1a8eb10184d14):
- An event listener is now added for every form component (input, custom-select, etc.) when a `form` property is passed.
- This listener detects form resets and updates the component's internal value/checked state accordingly.
- > **Note**: This does not work for `ngModel` in Angular.
- An event listener is now added for every form component (input, custom-select, etc.) when a `form` property is passed.
- This listener detects form resets and updates the component's internal value/checked state accordingly.
- > **Note**: This does not work for `ngModel` in Angular.

- fix(button): Replace fixed height with min-height for buttons to allow dynamic height adjustment when text wraps - [see commit d1fd2c4](https://github.com/db-ux-design-system/core-web/commit/d1fd2c4e58a5ed6f75fab44700cd2d93c7232474)

Expand All @@ -61,7 +61,7 @@ _version bump_
### Patch Changes

- chore: update instructions files for better copilot outputs - [see commit e4bc905](https://github.com/db-ux-design-system/core-web/commit/e4bc90508479387371d816d5776f9f568aa5fb82):
- fix: add some missing variables
- fix: add some missing variables

- fix(card): Remove the obsolete but harmful declaration regarding wrapping button and link styles. - [see commit 34c78df](https://github.com/db-ux-design-system/core-web/commit/34c78dffd4f43b0ac740574358b426a562e05cd0)

Expand All @@ -76,9 +76,9 @@ _version bump_
### Major Changes

- feat: Switch stable rework - [see commit cb2deb0](https://github.com/db-ux-design-system/core-web/commit/cb2deb0f1c54900d1967483aea05d81279c02f59):
- **BREAKING CHANGE**: remove `emphasis` property
- introduce validation (invalid and valid)
- configurable label position
- **BREAKING CHANGE**: remove `emphasis` property
- introduce validation (invalid and valid)
- configurable label position

- **BREAKING CHANGE**: refactor(Custom Select): renamed `ariaListLabel` property to `listLabel` - [see commit 966d5ad](https://github.com/db-ux-design-system/core-web/commit/966d5ad01f00d0ca1707cc316a63e2d431fff1e9)

Expand All @@ -97,30 +97,30 @@ _version bump_
### Patch Changes

- fix(DBTabs): ensure navigation arrows appear correctly on window resize - [see commit 4e65e00](https://github.com/db-ux-design-system/core-web/commit/4e65e00d280cae18baee03b5a7a9b13eec063835):
- This update resolves an issue where navigation arrows in DBTabs would not appear or update correctly when the window was resized. The component now properly responds to resize events, ensuring arrows are always shown or hidden as needed.
- This update resolves an issue where navigation arrows in DBTabs would not appear or update correctly when the window was resized. The component now properly responds to resize events, ensuring arrows are always shown or hidden as needed.

- fix(select): jumping placeholder for label above - [see commit 7ed8d22](https://github.com/db-ux-design-system/core-web/commit/7ed8d2225102e0e9044437e95917e11eef4bc73f)

- enabled [`@db-ux/agent-cli`](https://www.npmjs.com/package/@db-ux/agent-cli) for every package - [see commit 0233048](https://github.com/db-ux-design-system/core-web/commit/023304869e61f5a506dca66a22d69e5f3d70f4d0):
- auto-generate/auto-update `.github/copilot-instructions.md`, to ensure GitHub Copilot uses DB UX Components for code generation
- auto-generate/auto-update `.github/copilot-instructions.md`, to ensure GitHub Copilot uses DB UX Components for code generation

## 3.1.17

### Patch Changes

- fix: color mode for textarea resizer control set by color-mode-switch documentation UI component - [see commit 354e270](https://github.com/db-ux-design-system/core-web/commit/354e27029a4378288a97ed5e31b75c11758f0c01)
- refactor: enabling `hidden` HTML attribute in every context in which we need to set overwriting styling declarations (`display`) - [see commit 4826455](https://github.com/db-ux-design-system/core-web/commit/4826455637590b6ae780afb93abb9effe9380342)
- @db-ux/[email protected]
- @db-ux/[email protected]

## 3.1.16

### Patch Changes

- a28eb71: fix(custom-select): keyboard navigation for option groups in single-select mode - [see commit 6d60bab](https://github.com/db-ux-design-system/core-web/commit/6d60bab2eb87f16a9ffa942085bffd658564769c):
- Fixes a keyboard accessibility issue where users could not navigate to options in subsequent option groups using arrow keys in single-select mode.
- Now, all options are accessible via keyboard regardless of group boundaries.
- Fixes a keyboard accessibility issue where users could not navigate to options in subsequent option groups using arrow keys in single-select mode.
- Now, all options are accessible via keyboard regardless of group boundaries.
- fix: JS framework core-components packages are missing `@db-ux` dependencies - [see commit 49df866](https://github.com/db-ux-design-system/core-web/commit/49df866e753a9459f5acdca4ad1e19141b477471)
- @db-ux/[email protected]
- @db-ux/[email protected]

## 3.1.15

Expand All @@ -129,4 +129,4 @@ _version bump_
- 262964b: fix(Switch): double event firing with Angular signals
- 262964b: fix(CustomSelect): tags remaining visible when form values are reset
- 262964b: fix(CustomSelect): custom removeTagsTexts are not applied correctly
- @db-ux/[email protected]
- @db-ux/[email protected]
15 changes: 7 additions & 8 deletions packages/components/src/components/drawer/drawer.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,13 @@ const testComponent = (viewport) => {
await expect(component).toContainText('Test');
});

test.fixme(
`should match screenshot for device ${viewport.name}`,
async ({ mount }) => {
const component = await mount(comp);
// TODO: Screenshots are not captured for top-layer
await expect(component).toHaveScreenshot();
}
);
test.fixme(`should match screenshot for device ${viewport.name}`, async ({
mount
}) => {
const component = await mount(comp);
// TODO: Screenshots are not captured for top-layer
await expect(component).toHaveScreenshot();
});
};

const testA11y = () => {
Expand Down
4 changes: 3 additions & 1 deletion packages/components/src/components/switch/switch.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ test.describe('DBSwitch', () => {

test('should toggle on ENTER key press', async ({ mount, page }) => {
const component = await mount(<DBSwitch>Test Switch</DBSwitch>);
const input = component.locator('input[type="checkbox"][role="switch"]');
const input = component.locator(
'input[type="checkbox"][role="switch"]'
);

// Initially unchecked
await expect(input).not.toBeChecked();
Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/utils/navigation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const isEventTargetNavigationItem = (event: unknown): boolean => {
const { target } = event as { target: HTMLElement };
return Boolean(
!target?.classList?.contains('db-navigation-item-expand-button') &&
target?.parentElement?.classList.contains('db-navigation-item')
target?.parentElement?.classList.contains('db-navigation-item')
);
};

Expand Down
Loading