Skip to content

Commit 2e9887a

Browse files
committed
Fix: webpart title inherit color
1 parent 8fc6c95 commit 2e9887a

File tree

3 files changed

+3
-11
lines changed

3 files changed

+3
-11
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@pnp/spfx-controls-react",
33
"description": "Reusable React controls for SharePoint Framework solutions",
4-
"version": "1.1.1",
4+
"version": "1.1.2",
55
"engines": {
66
"node": ">=0.10.0"
77
},

src/controls/webPartTitle/WebPartTitle.module.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
background-color: transparent;
99
border: none;
1010
box-sizing: border-box;
11+
color: inherit;
1112
display: block;
1213
font-family: inherit;
1314
font-size: inherit;

src/controls/webPartTitle/WebPartTitle.tsx

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export class WebPartTitle extends React.Component<IWebPartTitleProps, {}> {
4242
*/
4343
public render(): React.ReactElement<IWebPartTitleProps> {
4444
return (
45-
<div className={`${styles.webPartTitle} ${this.props.className}` }>
45+
<div className={`${styles.webPartTitle} ${this.props.className ? this.props.className : ''}` }>
4646
{
4747
this.props.displayMode === DisplayMode.Edit && <textarea placeholder={strings.WebPartTitlePlaceholder} aria-label={strings.WebPartTitleLabel} onChange={this._onChange} defaultValue={this.props.title}></textarea>
4848
}
@@ -54,12 +54,3 @@ export class WebPartTitle extends React.Component<IWebPartTitleProps, {}> {
5454
);
5555
}
5656
}
57-
58-
59-
60-
61-
62-
63-
/*
64-
65-
*/

0 commit comments

Comments
 (0)