mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user