diff --git a/search-parts/src/components/CollapsibleContentComponent.tsx b/search-parts/src/components/CollapsibleContentComponent.tsx index ac276975..2583bb2f 100644 --- a/search-parts/src/components/CollapsibleContentComponent.tsx +++ b/search-parts/src/components/CollapsibleContentComponent.tsx @@ -1,7 +1,7 @@ import * as React from 'react'; import { BaseWebComponent } from '@pnp/modern-search-extensibility'; import * as ReactDOM from 'react-dom'; -import { IGroup, IGroupDividerProps, Icon, Text, GroupedList } from '@fluentui/react'; +import { IGroup, IGroupDividerProps, Icon, Text, GroupedList, ITextProps, IStyleFunctionOrObject, ITextStyles } from '@fluentui/react'; import { IReadonlyTheme } from '@microsoft/sp-component-base'; import styles from './CollapsibleContentComponent.module.scss'; import 'core-js/features/dom-collections'; @@ -126,7 +126,12 @@ export class CollapsibleContentComponent extends React.Component = { + root: { + color: textColor + } + }; return (
- {props.group.name} + {props.group.name}
{props.group.isCollapsed ? diff --git a/search-parts/src/components/filters/FilterCheckBoxComponent.tsx b/search-parts/src/components/filters/FilterCheckBoxComponent.tsx index ee026861..6bec8b20 100644 --- a/search-parts/src/components/filters/FilterCheckBoxComponent.tsx +++ b/search-parts/src/components/filters/FilterCheckBoxComponent.tsx @@ -1,7 +1,7 @@ import * as React from 'react'; import { BaseWebComponent, IDataFilterInfo, IDataFilterValueInfo, ExtensibilityConstants } from '@pnp/modern-search-extensibility'; import * as ReactDOM from 'react-dom'; -import { Checkbox, ChoiceGroup, IChoiceGroupOption, ITheme, Text } from '@fluentui/react'; +import { Checkbox, ChoiceGroup, IChoiceGroupOption, IStyleFunctionOrObject, ITextProps, ITextStyles, ITheme, Text } from '@fluentui/react'; import { IReadonlyTheme } from '@microsoft/sp-component-base'; export interface IFilterCheckBoxProps { @@ -72,6 +72,11 @@ export class FilterCheckBoxComponent extends React.Component = { + root: { + color: textColor + } + }; if (this.props.isMulti) { renderInput = { - return {props.label}; + return {props.label}; }} />; } else {