Skip to content

Commit 8205b87

Browse files
committed
Update defaultConfig and rename function
1 parent 8794668 commit 8205b87

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

Diff for: packages/bento-design-system/src/AreaLoader/createAreaLoader.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { Body, LocalizedString } from "..";
55
import { AreaLoaderConfig } from "./Config";
66
import { BodyProps } from "../Typography/Body/Body";
77

8-
function visibilityAreaColorToBackground(
8+
function readabilityAreaColorToBackground(
99
color: AreaLoaderConfig["readabilityAreaColor"]
1010
): BentoSprinkles["background"] {
1111
switch (color) {
@@ -64,7 +64,7 @@ export function createAreaLoader(config: AreaLoaderConfig) {
6464
<Box
6565
padding={80}
6666
className={bentoSprinkles({
67-
background: visibilityAreaColorToBackground(config.readabilityAreaColor),
67+
background: readabilityAreaColorToBackground(config.readabilityAreaColor),
6868
borderRadius: config.readabilityAreaBorderRadius,
6969
})}
7070
>

Diff for: packages/bento-design-system/src/util/defaultConfigs.tsx

+5-2
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,11 @@ export const actions: ActionsConfig = {
5353

5454
export const areaLoader: AreaLoaderConfig = {
5555
dots: [{ color: "brandPrimary" }, { color: "brandSecondary" }, { color: "brandTertiary" }],
56-
overlay: "light",
57-
visibilityAreaColor: "primary",
56+
scrimColor: "light",
57+
messageColor: "primary",
58+
messageSize: "medium",
59+
readabilityAreaColor: "primary",
60+
readabilityAreaBorderRadius: undefined,
5861
};
5962

6063
export const avatar: AvatarConfig = {

0 commit comments

Comments
 (0)