origam 2.7.1 → 2.7.3
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.
|
@@ -51,3 +51,10 @@ defineExpose({
|
|
|
51
51
|
isLoaded
|
|
52
52
|
});
|
|
53
53
|
</script>
|
|
54
|
+
|
|
55
|
+
<style lang="scss" scoped>
|
|
56
|
+
.origam-app {
|
|
57
|
+
color: var(--origam-app---color, var(--origam-color__text---primary));
|
|
58
|
+
background-color: var(--origam-app---background-color, var(--origam-color__surface---default));
|
|
59
|
+
}
|
|
60
|
+
</style>
|
|
@@ -432,10 +432,18 @@ const {
|
|
|
432
432
|
const { rtlClasses } = useRtl();
|
|
433
433
|
const { variantClasses } = useVariant(props);
|
|
434
434
|
const { sizeClasses } = useSize(props, "origam-field");
|
|
435
|
+
const fieldRadiusVarStyles = computed(() => {
|
|
436
|
+
const declarations = roundedStyles.value;
|
|
437
|
+
if (!Array.isArray(declarations)) return [];
|
|
438
|
+
const radius = declarations.find((declaration) => declaration.startsWith("border-radius:"));
|
|
439
|
+
if (!radius) return [];
|
|
440
|
+
return [`--origam-field---border-radius: ${radius.slice("border-radius:".length).trim()}`];
|
|
441
|
+
});
|
|
435
442
|
const fieldStyles = computed(() => {
|
|
436
443
|
return [
|
|
437
444
|
colorStyles.value,
|
|
438
445
|
roundedStyles.value,
|
|
446
|
+
fieldRadiusVarStyles.value,
|
|
439
447
|
elevationStyles.value,
|
|
440
448
|
props.style
|
|
441
449
|
];
|
|
@@ -38,5 +38,10 @@ provideDefaults(scopedDefaults, { scoped: true });
|
|
|
38
38
|
<style lang="scss" scoped>
|
|
39
39
|
.origam-theme-provider {
|
|
40
40
|
display: contents;
|
|
41
|
+
// Base text color for the sub-tree (#201): `color` is inherited and passes
|
|
42
|
+
// through `display: contents`, so a local `data-mode="dark"` sub-tree gets
|
|
43
|
+
// readable default text (and currentColor icons) without painting a box.
|
|
44
|
+
// No background here — a provider is not a surface.
|
|
45
|
+
color: var(--origam-color__text---primary);
|
|
41
46
|
}
|
|
42
47
|
</style>
|