Skip to content

Commit 7eca059

Browse files
committed
Placeholder button temp. fix for Office UI Fabric
1 parent a01d590 commit 7eca059

File tree

2 files changed

+30
-2
lines changed

2 files changed

+30
-2
lines changed

src/controls/placeholder/PlaceholderComponent.module.scss

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,35 @@
4040
vertical-align: middle;
4141
margin: 0 auto;
4242
text-align: center;
43+
4344
.placeholderDescriptionText {
4445
color: "[theme:neutralSecondary, default: #666666]";
4546
font-size: 17px;
4647
display: inline-block;
4748
margin: 24px 0;
4849
font-weight: 100;
4950
}
51+
52+
button {
53+
font-size: 14px;
54+
font-weight: 400;
55+
box-sizing: border-box;
56+
display: inline-block;
57+
text-align: center;
58+
cursor: pointer;
59+
vertical-align: top;
60+
min-width: 80px;
61+
height: 32px;
62+
background-color: "[theme:themePrimary, default: #0078d7]";
63+
color: #fff;
64+
user-select: none;
65+
outline: transparent;
66+
border-width: 1px;
67+
border-style: solid;
68+
border-color: transparent;
69+
border-image: initial;
70+
text-decoration: none;
71+
}
5072
}
5173
}
5274
}

src/controls/placeholder/PlaceholderComponent.tsx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import * as React from 'react';
22
import { IPlaceholderProps } from './IPlaceholderComponent';
3-
import { PrimaryButton } from 'office-ui-fabric-react/lib/components/Button';
3+
import { PrimaryButton } from 'office-ui-fabric-react/lib/Button';
44
import styles from './PlaceholderComponent.module.scss';
55

66
/**
@@ -46,17 +46,23 @@ export class Placeholder extends React.Component<IPlaceholderProps, {}> {
4646
{this.props.children}
4747
<div className={styles.placeholderDescription}>
4848
{
49-
this.props.buttonLabel &&
49+
/*
5050
<PrimaryButton
5151
ariaLabel={this.props.buttonLabel}
5252
ariaDescription={this.props.description}
5353
onClick={this._handleBtnClick}>
5454
{this.props.buttonLabel}
5555
</PrimaryButton>
56+
*/
57+
this.props.buttonLabel &&
58+
<button onClick={this._handleBtnClick}>{this.props.buttonLabel}</button>
5659
}
5760
</div>
5861
</div>
5962
</div>
6063
);
6164
}
6265
}
66+
67+
68+

0 commit comments

Comments
 (0)