Skip to content

Commit c99774d

Browse files
authored
refactor: stable renaming (#16)
* refactor: stable renaming * Update radio-checkbox-screenreader-accessibility/package.json
1 parent 7518b0b commit c99774d

13 files changed

+31
-31
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Within this repository, we'd like to store evaluations that should get seperated
55
## Deutsche Bahn brand
66

77
As we'd like to perfectly support our users and customers on their digital journey, the usage of Deutsche Bahn brand and trademarks are bound to clear guidelines and restrictions even when being used with the code that we're providing with this product.
8-
Deutsche Bahn fully reserves all rights and ownership regarding the Deutsche Bahn brand, even though that we're providing the code of DB UI products free to use and release it under the Apache 2.0 license.
8+
Deutsche Bahn fully reserves all rights and ownership regarding the Deutsche Bahn brand, even though that we're providing the code of DB UX Design System products free to use and release it under the Apache 2.0 license.
99
Please have a look at our [brand portal](https://marketingportal.extranet.deutschebahn.com/) for any further questions and whom to contact on any brand issues.
1010

1111
As these assets and visual guidelines are retrieved from our Deutsche Bahn Marketingportal, you'll agree with the ["Allgemeine Nutzungsbedingungen für das DB-Marketingportal" (german)](https://marketingportal.extranet.deutschebahn.com/marketingportal/Nutzungsbedingungen-9702684) in case of using them.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
styles/db-ui-42-absolute.css
1+
styles/absolute.css
22
assets/*

radio-checkbox-screenreader-accessibility/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,16 @@
55
<meta name="viewport" content="width=device-width, initial-scale=1.0">
66
<title>test(a11y)</title>
77
<link rel="icon" type="image/x-icon" href="/assets/favicon.ico">
8-
<link rel="stylesheet" href="/styles/db-ui-42-absolute.css">
8+
<link rel="stylesheet" href="/styles/absolute.css">
99
<link rel="stylesheet" href="/styles/main.css">
1010
</head>
11-
<body class="db-ui-regular">
11+
<body class="db-ux-regular">
1212
<header class="centered">
1313
<h1>test(a11y)</h1>
1414
<p><strong>radio-buttons & checkboxes</strong></p>
1515
<p>
1616
Label is being announced twice for Radio and Checkbox elements.
17-
<a class="db-link" data-content="external" target="_blank" href="https://github.com/db-ui/mono/issues/2037">
17+
<a class="db-link" data-content="external" target="_blank" href="https://github.com/db-ux-design-system/core-web/issues/2037">
1818
Github Issue
1919
</a>
2020
</p>

radio-checkbox-screenreader-accessibility/package-lock.json

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

radio-checkbox-screenreader-accessibility/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@
66
"scripts": {
77
"test": "echo \"Error: no test specified\" && exit 1",
88
"init": "npm-run-all copy:*",
9-
"copy:styles": "cpx 'node_modules/@db-ui/components/build/styles/db-ui-42-absolute.css' 'styles/'",
10-
"copy:assets": "cpx 'node_modules/@db-ui/components/build/assets/**' 'assets'",
9+
"copy:styles": "cpx 'node_modules/@db-ux/core-components/build/styles/absolute.css' 'styles/'",
10+
"copy:assets": "cpx 'node_modules/@db-ux/core-components/build/assets/**' 'assets'",
1111
"dev": "vite --open"
1212
},
1313
"author": "",
1414
"license": "ISC",
1515
"devDependencies": {
16-
"@db-ui/components": "^0.0.68",
16+
"@db-ux/core-components": "^0.0.68",
1717
"cpx2": "^7.0.1",
1818
"npm-run-all2": "7.0.2",
1919
"vite": "^5.1.7"

radio-checkbox-screenreader-accessibility/pages/aria-label-nested-radio-buttons.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
<meta name="viewport" content="width=device-width, initial-scale=1.0">
66
<title>test(a11y) - Status Quo: checkboxes</title>
77
<link rel="icon" type="image/x-icon" href="/assets/favicon.ico">
8-
<link rel="stylesheet" href="/styles/db-ui-42-absolute.css">
8+
<link rel="stylesheet" href="/styles/absolute.css">
99
<link rel="stylesheet" href="/styles/main.css">
1010
</head>
11-
<body class="db-ui-expressive">
11+
<body class="db-ux-expressive">
1212
<header class="centered">
1313
<h1>test(a11y)</h1>
1414
<p>Using <code>aria-label</code> at radio buttons: <i>label > input</i></p>

radio-checkbox-screenreader-accessibility/pages/aria-label-siblings-radio-buttons.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
<meta name="viewport" content="width=device-width, initial-scale=1.0">
66
<title>test(a11y) - Status Quo: checkboxes</title>
77
<link rel="icon" type="image/x-icon" href="/assets/favicon.ico">
8-
<link rel="stylesheet" href="/styles/db-ui-42-absolute.css">
8+
<link rel="stylesheet" href="/styles/absolute.css">
99
<link rel="stylesheet" href="/styles/main.css">
1010
</head>
11-
<body class="db-ui-expressive">
11+
<body class="db-ux-expressive">
1212
<header class="centered">
1313
<h1>test(a11y)</h1>
1414
<p>Using <code>aria-label</code> at radio buttons: <i>input + label</i></p>

radio-checkbox-screenreader-accessibility/pages/aria-labelledby-nested-radio-buttons.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
<meta name="viewport" content="width=device-width, initial-scale=1.0">
66
<title>test(a11y) - Status Quo: checkboxes</title>
77
<link rel="icon" type="image/x-icon" href="/assets/favicon.ico">
8-
<link rel="stylesheet" href="/styles/db-ui-42-absolute.css">
8+
<link rel="stylesheet" href="/styles/absolute.css">
99
<link rel="stylesheet" href="/styles/main.css">
1010
</head>
11-
<body class="db-ui-expressive">
11+
<body class="db-ux-expressive">
1212
<header class="centered">
1313
<h1>test(a11y)</h1>
1414
<p>Using <code>aria-labelledby</code> at radio buttons: <i>label > input</i></p>

radio-checkbox-screenreader-accessibility/pages/aria-labelledby-siblings-radio-buttons.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
<meta name="viewport" content="width=device-width, initial-scale=1.0">
66
<title>test(a11y) - Status Quo: checkboxes</title>
77
<link rel="icon" type="image/x-icon" href="/assets/favicon.ico">
8-
<link rel="stylesheet" href="/styles/db-ui-42-absolute.css">
8+
<link rel="stylesheet" href="/styles/absolute.css">
99
<link rel="stylesheet" href="/styles/main.css">
1010
</head>
11-
<body class="db-ui-expressive">
11+
<body class="db-ux-expressive">
1212
<header class="centered">
1313
<h1>test(a11y)</h1>
1414
<p>Using <code>aria-labelledby</code> at radio buttons: <i>input + label</i></p>

radio-checkbox-screenreader-accessibility/pages/siblings-radio-buttons.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
<meta name="viewport" content="width=device-width, initial-scale=1.0">
66
<title>test(a11y) - Status Quo: checkboxes</title>
77
<link rel="icon" type="image/x-icon" href="/assets/favicon.ico">
8-
<link rel="stylesheet" href="/styles/db-ui-42-absolute.css">
8+
<link rel="stylesheet" href="/styles/absolute.css">
99
<link rel="stylesheet" href="/styles/main.css">
1010
</head>
11-
<body class="db-ui-expressive">
11+
<body class="db-ux-expressive">
1212
<header class="centered">
1313
<h1>test(a11y)</h1>
1414
<p>Using <code>aria-label</code> at radio buttons: <i>input + label</i></p>

radio-checkbox-screenreader-accessibility/pages/status-quo-checkboxes.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
<meta name="viewport" content="width=device-width, initial-scale=1.0">
66
<title>test(a11y) - Status Quo: checkboxes</title>
77
<link rel="icon" type="image/x-icon" href="/assets/favicon.ico">
8-
<link rel="stylesheet" href="/styles/db-ui-42-absolute.css">
8+
<link rel="stylesheet" href="/styles/absolute.css">
99
<link rel="stylesheet" href="/styles/main.css">
1010
</head>
11-
<body class="db-ui-expressive">
11+
<body class="db-ux-expressive">
1212
<header class="centered">
1313
<h1>test(a11y)</h1>
1414
<p>Status Quo: checkboxes</p>

radio-checkbox-screenreader-accessibility/pages/status-quo-radio-buttons.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
<meta name="viewport" content="width=device-width, initial-scale=1.0">
66
<title>test(a11y) - Status Quo: checkboxes</title>
77
<link rel="icon" type="image/x-icon" href="/assets/favicon.ico">
8-
<link rel="stylesheet" href="/styles/db-ui-42-absolute.css">
8+
<link rel="stylesheet" href="/styles/absolute.css">
99
<link rel="stylesheet" href="/styles/main.css">
1010
</head>
11-
<body class="db-ui-expressive">
11+
<body class="db-ux-expressive">
1212
<header class="centered">
1313
<h1>test(a11y)</h1>
1414
<p>Status Quo: radio buttons</p>

variable-fonts/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Source: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_fonts/Variable_font
1717

1818
In a naive way I thought: "We have already an icon font, it should be easy to convert it to a variable font" - I was wrong.
1919

20-
First of all if we use for example this [tool](https://github.com/db-ui/gif) we can generate different file types. And it may contain different icon sizes (e.g. 16, 24, 32) which might look different, with different weights etc.
20+
First of all if we use for example this [tool](https://github.com/db-ux-design-system/icon-font-tools) we can generate different file types. And it may contain different icon sizes (e.g. 16, 24, 32) which might look different, with different weights etc.
2121

2222
But the biggest problem is that a variable font has a restriction: To interpolate a font glyph, it needs the same amount of points and lines and in the same order. Otherwise, it won't be able to interpolate properly.
2323

@@ -37,12 +37,12 @@ Based on a [YouTube video](https://www.youtube.com/watch?v=xoQuWARCUWI) you can
3737
> You need to go into this directory: `cd variable-fonts`
3838
3939
1. We use a simple `test.svg` with two rectangles as a testing icon.
40-
2. We run `npx @db-ui/gif --src . --fontName test`
40+
2. We run `npx @db-ux/icon-font-tools --src . --fontName test`
4141
3. This will create some font files. For this example we need `fonts/all/test.woff2`
4242
4. We use [FontForge](https://fontforge.org/) to open the `test.woff2`
4343
5. We will save the current font as `.sfd` format like `test.sfd`. Then we change the font name via FontForge settings to something like `test_bold` and save another file as `test_bold.sfd`.
4444
6. Next we scroll to the bottom of the `test_bold` font inside FontForge and change the positions of the points inside the glyph. In this case we use the empty space between the rectangles to widen them.
45-
7. After this we will create a font from both the `test.sfd` and `test_bold.sfd` as `.ufo` file. **Warning** the SVG might get redrawn by `@db-ui/gif` you may need to fix issues (like the direction) in FontForge by using the "Element/Validation" setting.
45+
7. After this we will create a font from both the `test.sfd` and `test_bold.sfd` as `.ufo` file. **Warning** the SVG might get redrawn by `@db-ux/icon-font-tools` you may need to fix issues (like the direction) in FontForge by using the "Element/Validation" setting.
4646
8. Next we need to create a `.designspace` file. This is a representation (XML) for how the axis works. Check the `test.designspace` for more information.
4747
9. Now we need to run `fontmake -m test.designspace -o variable --production-names --output-path test.ttf`
4848
10. Goto [this](https://opentype.js.org/glyph-inspector.html) website and open the `test.ttf`. You should change the `weight` of the icon with the slider provided. You may also see `index.html` and `index.css` to check how you use an axis inside HTML/CSS.

0 commit comments

Comments
 (0)