Skip to content

customize picker mask background via CSS variable --acrool-react-picker-mask-background #21

Description

@garychien

Summary

Allow consumers of @acrool/react-picker to override the mask background using a CSS custom property, without relying on fragile CSS Module class selectors or extra React props.

Context

The mask is rendered by the shared .motion-mask-wrapper class in both MotionDrawer and MotionDrawerWithout. The background was previously hard-coded to rgba(0, 0, 0, 0.2). IPickerOption.motionProps only applies to the main panel, not the mask.

Implementation

In motion-drawer.module.scss, set the mask background to:

background: var(--acrool-react-picker-mask-background, rgba(0, 0, 0, 0.2));

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions