Skip to content

Commit f77d931

Browse files
auto format code (#5551)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent d48fd07 commit f77d931

File tree

12 files changed

+61
-62
lines changed

12 files changed

+61
-62
lines changed

docs/migration/alpha-beta.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,14 @@ The prop labelVariant for form-components (input, checkbox, ...) has been rename
3636
| -------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
3737
| 🔄 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` |
3838
| 🔄 renamed `db-main-navigation` to `db-navigation` | renamed `main-navigation` to `navigation` | Replace `DBMainNavigation`, `db-main-navigation` by `DBNavigation` / `db-navigation` |
39-
| 🔄 changed `db-button` variants | We renamed the variants for the button | `primary``brand`<br/>`solid``filled`<br/>`text``ghost` |
40-
| 🔄 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 |
39+
| 🔄 changed `db-button` variants | We renamed the variants for the button | `primary``brand`<br/>`solid``filled`<br/>`text``ghost` |
40+
| 🔄 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 |
4141
| 🆕 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: ...` |
42-
| 🔄 changed `db-link` variant | We renamed the variants for the link | `primary``brand` |
42+
| 🔄 changed `db-link` variant | We renamed the variants for the link | `primary``brand` |
4343
| ❌ 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 |
4444
| 🔄 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` |
4545
| ❌ removed prop `areaPopup` from `db-navigation-item` | We no longer support opening sub-navigations from via prop. | There is no alternative at the moment. |
46-
| 🔄 changed `db-header` slot names | The slot names for "action" containers changed | 1. `callToAction``primaryAction` <br/>2. `actionBar``secondaryAction` |
46+
| 🔄 changed `db-header` slot names | The slot names for "action" containers changed | 1. `callToAction``primaryAction` <br/>2. `actionBar``secondaryAction` |
4747
| 🔄 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` |
4848

4949
### React

packages/agent-cli/CHANGELOG.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
_version bump_
66

7-
87
## 4.2.1
98

109
_version bump_
@@ -32,7 +31,7 @@ _version bump_
3231
### Patch Changes
3332

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

3736
## 4.0.1
3837

@@ -55,4 +54,4 @@ _version bump_
5554
### Patch Changes
5655

5756
- 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):
58-
- auto-generate/auto-update `.github/copilot-instructions.md`, to ensure GitHub Copilot uses DB UX Components for code generation
57+
- auto-generate/auto-update `.github/copilot-instructions.md`, to ensure GitHub Copilot uses DB UX Components for code generation

packages/components/CHANGELOG.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@ _version bump_
2121
- 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)
2222

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

2626
### Patch Changes
2727

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

@@ -51,7 +51,7 @@ _version bump_
5151
### Patch Changes
5252

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

5656
- 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)
5757

@@ -66,9 +66,9 @@ _version bump_
6666
### Major Changes
6767

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

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

@@ -87,30 +87,30 @@ _version bump_
8787
### Patch Changes
8888

8989
- fix(DBTabs): ensure navigation arrows appear correctly on window resize - [see commit 4e65e00](https://github.com/db-ux-design-system/core-web/commit/4e65e00d280cae18baee03b5a7a9b13eec063835):
90-
- 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.
90+
- 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.
9191

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

9494
- 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):
95-
- auto-generate/auto-update `.github/copilot-instructions.md`, to ensure GitHub Copilot uses DB UX Components for code generation
95+
- auto-generate/auto-update `.github/copilot-instructions.md`, to ensure GitHub Copilot uses DB UX Components for code generation
9696

9797
## 3.1.17
9898

9999
### Patch Changes
100100

101101
- 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)
102102
- 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)
103-
- @db-ux/core-foundations@3.1.17
103+
- @db-ux/core-foundations@3.1.17
104104

105105
## 3.1.16
106106

107107
### Patch Changes
108108

109109
- 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):
110-
- Fixes a keyboard accessibility issue where users could not navigate to options in subsequent option groups using arrow keys in single-select mode.
111-
- Now, all options are accessible via keyboard regardless of group boundaries.
110+
- Fixes a keyboard accessibility issue where users could not navigate to options in subsequent option groups using arrow keys in single-select mode.
111+
- Now, all options are accessible via keyboard regardless of group boundaries.
112112
- 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)
113-
- @db-ux/core-foundations@3.1.16
113+
- @db-ux/core-foundations@3.1.16
114114

115115
## 3.1.15
116116

@@ -119,4 +119,4 @@ _version bump_
119119
- 262964b: fix(Switch): double event firing with Angular signals
120120
- 262964b: fix(CustomSelect): tags remaining visible when form values are reset
121121
- 262964b: fix(CustomSelect): custom removeTagsTexts are not applied correctly
122-
- @db-ux/core-foundations@3.1.15
122+
- @db-ux/core-foundations@3.1.15

packages/components/src/components/drawer/drawer.spec.tsx

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,13 @@ const testComponent = (viewport) => {
1515
await expect(component).toContainText('Test');
1616
});
1717

18-
test.fixme(
19-
`should match screenshot for device ${viewport.name}`,
20-
async ({ mount }) => {
21-
const component = await mount(comp);
22-
// TODO: Screenshots are not captured for top-layer
23-
await expect(component).toHaveScreenshot();
24-
}
25-
);
18+
test.fixme(`should match screenshot for device ${viewport.name}`, async ({
19+
mount
20+
}) => {
21+
const component = await mount(comp);
22+
// TODO: Screenshots are not captured for top-layer
23+
await expect(component).toHaveScreenshot();
24+
});
2625
};
2726

2827
const testA11y = () => {

packages/components/src/components/switch/switch.spec.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ test.describe('DBSwitch', () => {
3636

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

4143
// Initially unchecked
4244
await expect(input).not.toBeChecked();

packages/components/src/utils/navigation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export const isEventTargetNavigationItem = (event: unknown): boolean => {
1313
const { target } = event as { target: HTMLElement };
1414
return Boolean(
1515
!target?.classList?.contains('db-navigation-item-expand-button') &&
16-
target?.parentElement?.classList.contains('db-navigation-item')
16+
target?.parentElement?.classList.contains('db-navigation-item')
1717
);
1818
};
1919

packages/foundations/CHANGELOG.md

Lines changed: 21 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
_version bump_
66

7-
87
## 4.2.1
98

109
_version bump_
@@ -30,28 +29,28 @@ _version bump_
3029
### Patch Changes
3130

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

3534
- fix(tailwind): add individual color theme files for all color variants - [see commit e8d58bd](https://github.com/db-ux-design-system/core-web/commit/e8d58bde01039a3d233105c2c72efa71c619c4b4):
36-
- Create separate CSS files for each color
37-
- Move colors.css to colors/ subdirectory with adaptive theme
38-
- Add colors/index.css that imports all color variants
39-
- Update theme/index.css to import from colors/index.css
40-
- burgundy
41-
- critical
42-
- cyan
43-
- green
44-
- informational
45-
- light-green
46-
- neutral
47-
- orange
48-
- pink
49-
- red
50-
- successful
51-
- turquoise
52-
- violet
53-
- warning
54-
- yellow
35+
- Create separate CSS files for each color
36+
- Move colors.css to colors/ subdirectory with adaptive theme
37+
- Add colors/index.css that imports all color variants
38+
- Update theme/index.css to import from colors/index.css
39+
- burgundy
40+
- critical
41+
- cyan
42+
- green
43+
- informational
44+
- light-green
45+
- neutral
46+
- orange
47+
- pink
48+
- red
49+
- successful
50+
- turquoise
51+
- violet
52+
- warning
53+
- yellow
5554

5655
## 4.0.1
5756

@@ -78,7 +77,7 @@ _version bump_
7877
### Patch Changes
7978

8079
- 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):
81-
- auto-generate/auto-update `.github/copilot-instructions.md`, to ensure GitHub Copilot uses DB UX Components for code generation
80+
- auto-generate/auto-update `.github/copilot-instructions.md`, to ensure GitHub Copilot uses DB UX Components for code generation
8281

8382
## 3.1.17
8483

packages/foundations/scss/colors/_variables.scss

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
$variants: "neutral", "brand", "critical", "successful", "warning", "informational";
2-
$variant-colors: "neutral", "critical", "successful", "warning", "informational";
1+
$variants:
2+
"neutral", "brand", "critical", "successful", "warning", "informational";
3+
$variant-colors:
4+
"neutral", "critical", "successful", "warning", "informational";
35
$on-background-colors:
46
"emphasis-100", "emphasis-90", "emphasis-80", "emphasis-70", "emphasis-60",
57
"emphasis-50";

packages/migration/CHANGELOG.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
_version bump_
66

7-
87
## 4.2.1
98

109
_version bump_

packages/stylelint/CHANGELOG.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
_version bump_
66

7-
87
## 4.2.1
98

109
_version bump_

0 commit comments

Comments
 (0)