This repository was archived by the owner on Sep 11, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -82,7 +82,8 @@ limitations under the License.
8282 display : flex;
8383 align-items : center;
8484
85- &:hover {
85+ &:hover ,
86+ &:focus {
8687 background-color : $menu-selected-color ;
8788 }
8889
@@ -187,3 +188,7 @@ limitations under the License.
187188 color : $tertiary-content ;
188189 }
189190}
191+
192+ .mx_IconizedContextMenu_item.mx_IconizedContextMenu_itemDestructive {
193+ color : $alert !important ;
194+ }
Original file line number Diff line number Diff line change @@ -39,6 +39,7 @@ interface IOptionListProps {
3939
4040interface IOptionProps extends React . ComponentProps < typeof MenuItem > {
4141 iconClassName ?: string ;
42+ isDestructive ?: boolean ;
4243}
4344
4445interface ICheckboxProps extends React . ComponentProps < typeof MenuItemCheckbox > {
@@ -112,12 +113,14 @@ export const IconizedContextMenuOption: React.FC<IOptionProps> = ({
112113 className,
113114 iconClassName,
114115 children,
116+ isDestructive,
115117 ...props
116118} ) => {
117119 return < MenuItem
118120 { ...props }
119121 className = { classNames ( className , {
120122 mx_IconizedContextMenu_item : true ,
123+ mx_IconizedContextMenu_itemDestructive : isDestructive ,
121124 } ) }
122125 label = { label }
123126 >
You can’t perform that action at this time.
0 commit comments