From b487c4fd94e20328febffc0eed427fb4df541ae1 Mon Sep 17 00:00:00 2001 From: Joen Asmussen Date: Thu, 11 May 2017 12:42:46 +0200 Subject: [PATCH] Add prefix to React component This is a teensy PR that only affects the built react component. It simply changes the output so that icons have a properly prefixed icon class, i.e. `dashicons-button` instead of plainly `button`, so as to avoid CSS bleed. --- react/dashicon/inc/index-footer.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/react/dashicon/inc/index-footer.jsx b/react/dashicon/inc/index-footer.jsx index 367aae24..e2f5a388 100644 --- a/react/dashicon/inc/index-footer.jsx +++ b/react/dashicon/inc/index-footer.jsx @@ -4,7 +4,7 @@ return null; } - const iconClass = [ 'dashicon', icon, className ].filter( Boolean ).join( ' ' ); + const iconClass = [ 'dashicon', 'dashicons-' + icon, className ].filter( Boolean ).join( ' ' ); return (