Skip to content

Commit

Permalink
My Jetpack: remove red dot from notice component (#36773)
Browse files Browse the repository at this point in the history
* My Jetpack: Remove red bubble from notices

* changelog
  • Loading branch information
IanRamosC committed Apr 8, 2024
1 parent 27e4b60 commit fcf3667
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ const GlobalNotice = ( { message, options } ) => {
<div
className={ classnames( styles.notice, {
[ styles[ 'bigger-than-medium' ] ]: isBiggerThanMedium,
[ styles[ 'is-red-bubble' ] ]: options.isRedBubble,
} ) }
>
<Notice hideCloseButton={ true } { ...options } actions={ actionButtons }>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ const defaultNotice: Notice = {
options: {
level: '',
priority: 0,
isRedBubble: false,
},
};

Expand Down
1 change: 0 additions & 1 deletion projects/packages/my-jetpack/_inc/context/notices/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ export type Notice = {
level: string;
actions?: NoticeButtonAction[];
priority: number;
isRedBubble?: boolean;
};
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ const useBadInstallNotice = ( redBubbleAlerts: RedBubbleAlerts ) => {
},
],
priority: NOTICE_PRIORITY_MEDIUM,
isRedBubble: true,
};

setNotice( {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ const useSiteConnectionNotice = ( redBubbleAlerts: RedBubbleAlerts ) => {
},
],
priority: NOTICE_PRIORITY_HIGH,
isRedBubble: true,
};

setNotice( {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: removed

My Jetpack: remove red bubble from connection notice in favor of using the status of the Notice component

0 comments on commit fcf3667

Please sign in to comment.