Skip to content

Commit

Permalink
feat(CookieConsent): add root class to ConsentPopup Modal
Browse files Browse the repository at this point in the history
  • Loading branch information
danonechik94 committed Oct 22, 2024
1 parent 0a7854b commit f94ac69
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/components/CookieConsent/CookieConsent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ export const CookieConsent = ({
<ConsentPopup
{...popupProps}
className={b()}
rootClassName={b('root')}
step={manageCookies ? ConsentPopupStep.Manage : ConsentPopupStep.Main}
onAction={onConsentPopupAction}
onClose={onClose}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ export const ConsentPopup = ({
policyLink,
onAction,
className,
rootClassName,
policyLinkText = i18n('label_policy_extended'),
text,
manageLabelText = i18n('manage_label_text_extended'),
Expand Down Expand Up @@ -156,6 +157,7 @@ export const ConsentPopup = ({
open
disableOutsideClick
disableEscapeKeyDown
className={rootClassName}
contentClassName={b('modal-content', {step: currentStep, mobile})}
onClose={onClose}
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ export type ConsentPopupProps = ConsentPopupData &
CookieConsentBaseProps & {
/* Active step */
step?: `${ConsentPopupStep}`;
rootClassName?: string;
};

export interface HeaderProps {
Expand Down

0 comments on commit f94ac69

Please sign in to comment.