@bytebrand/fe-ui-core-autobahn 1.0.90 → 1.0.91
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -42,9 +42,14 @@ const SURFACE: React.CSSProperties = {
|
|
|
42
42
|
const BasicModal = ({ isVisible, toggleModal, name, modalProps, handleSentryInit }: IBasicModal) => {
|
|
43
43
|
if (!isVisible || typeof document === 'undefined') return null;
|
|
44
44
|
return ReactDOM.createPortal(
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
45
|
+
// wrapped in .md3: autobahn.css scopes every token/utility class (incl.
|
|
46
|
+
// .mbtn used by the modal buttons) under `.md3` and intentionally does
|
|
47
|
+
// nothing outside it — a bare document.body portal loses the theme.
|
|
48
|
+
<div className='md3'>
|
|
49
|
+
<div style={OVERLAY} role='dialog' aria-modal='true' aria-label='Cookie-Einstellungen'>
|
|
50
|
+
<div style={SURFACE}>
|
|
51
|
+
{ModalsConfig[name] && ModalsConfig[name]({ ...modalProps, toggleModal, handleSentryInit })}
|
|
52
|
+
</div>
|
|
48
53
|
</div>
|
|
49
54
|
</div>,
|
|
50
55
|
document.body
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bytebrand/fe-ui-core-autobahn",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.91",
|
|
4
4
|
"description": "auto.de md3 (Autobahn) design system — UI primitives, cards, chrome, VDP modules, theme CSS and locales. Ships raw TypeScript source (like fe-ui-core before it); each consumer's bundler compiles it.",
|
|
5
5
|
"main": "index.ts",
|
|
6
6
|
"license": "UNLICENSED",
|