Buttons: introduce buttonStyle prop (#33384)

* Wip

* Updates to colors to make secondary outline work

* refactor: prefer buttonStyle="text" over variant="link" for text buttons

* revert(button): put back mdx story page

* fix(button): variant link disabled as text disabled

* docs(button): remove link variant from stories

* feat(grafana-ui): introduce basic deprecation notice for button and linkbutton components

* docs(button): update usage of href with button and buttonlink

* feat(button): add grafana/ui to deprecation warning

* refactor(buttons): use a more descriptive name for prop warning function

* test(buttonrow): update snapshots

* refactor(buttons): change prop name from buttonStyle to fill

Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
This commit is contained in:
Jack Westbrook
2021-04-27 12:03:06 +02:00
committed by GitHub
parent 58a325a4e4
commit 45fa5fdf48
20 changed files with 200 additions and 118 deletions

View File

@@ -415,7 +415,7 @@ export class UnthemedLogs extends PureComponent<Props, State> {
{!loading && !hasData && !scanning && (
<div className={styles.noData}>
No logs found.
<Button size="xs" variant="link" onClick={this.onClickScan}>
<Button size="xs" fill="text" onClick={this.onClickScan}>
Scan for older logs
</Button>
</div>
@@ -424,7 +424,7 @@ export class UnthemedLogs extends PureComponent<Props, State> {
{scanning && (
<div className={styles.noData}>
<span>{scanText}</span>
<Button size="xs" variant="link" onClick={this.onClickStopScan}>
<Button size="xs" fill="text" onClick={this.onClickStopScan}>
Stop scan
</Button>
</div>