@@ -26,7 +26,6 @@ export default class RteColorPicker extends React.Component<IRteColorPickerProps
2626 */
2727 public render ( ) : React . ReactElement < IRteColorPickerProps > {
2828 const { buttonLabel, defaultButtonLabel, fillThemeColor, id, previewColor } = this . props ;
29-
3029 return (
3130 < div >
3231 < div ref = { ( ref ) => this . wrapperRef = ref } >
@@ -36,7 +35,8 @@ export default class RteColorPicker extends React.Component<IRteColorPickerProps
3635 < DefaultButton className = { styles . colorPickerButton }
3736 aria-describedby = { id }
3837 onClick = { ( ) => this . handleColorChanged ( previewColor ) } >
39- < svg className = { `${ styles . previewSvg } ${ previewColor === "rgba(0, 0, 0, 0)" ? styles . border : "" } ` }
38+ { /* Added border to white */ }
39+ < svg className = { `${ styles . previewSvg } ${ ( previewColor === "rgba(0, 0, 0, 0)" || previewColor === "#ffffff" ) ? styles . border : "" } ` }
4040 fill = { previewColor }
4141 viewBox = "0 0 20 20" >
4242 < rect className = { styles . previewRectangle }
@@ -110,6 +110,12 @@ export default class RteColorPicker extends React.Component<IRteColorPickerProps
110110 case "highlightColors" :
111111 groupName = strings . HighlightColorsGroupName ;
112112 break ;
113+ case "standardColors" :
114+ groupName = strings . StandardColorsGroupName ;
115+ break ;
116+ case "customColors" :
117+ groupName = strings . CustomColorsGroupName ;
118+ break ;
113119 default :
114120 groupName = strings . HighlightColorsGroupName ;
115121 break ;
@@ -241,6 +247,9 @@ export default class RteColorPicker extends React.Component<IRteColorPickerProps
241247 }
242248 ] ;
243249 break ;
250+ case 'customColors' :
251+ groupColors = this . props . customColors ;
252+ break ;
244253 default :
245254 groupColors = [
246255 {
0 commit comments