Skip to content

Commit 52cb610

Browse files
author
Nagesh Pai
committed
Highlight default icon when enabled
1 parent 37a760d commit 52cb610

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/infotip/inline-ui.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,9 @@ function IconTabContent( {
149149
];
150150

151151
const iconEnabled = activeAttributes[ 'icon-enabled' ] === 'true';
152+
if ( iconEnabled && ! activeAttributes[ 'icon-type' ] ) {
153+
activeAttributes[ 'icon-type' ] = 'info';
154+
}
152155

153156
return (
154157
<>

0 commit comments

Comments
 (0)