mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
A11y/Dashboard: Fix a few more miscellaneous fastpass issues (#40328)
See #39429
This commit is contained in:
@@ -136,11 +136,11 @@ export class ShareExport extends PureComponent<Props, State> {
|
||||
<>
|
||||
<p className="share-modal-info-text">Export this dashboard.</p>
|
||||
<Field label="Export for sharing externally">
|
||||
<Switch value={shareExternally} onChange={this.onShareExternallyChange} />
|
||||
<Switch id="share-externally-toggle" value={shareExternally} onChange={this.onShareExternallyChange} />
|
||||
</Field>
|
||||
{config.featureToggles.trimDefaults && (
|
||||
<Field label="Export with default values removed">
|
||||
<Switch value={trimDefaults} onChange={this.onTrimDefaultsChange} />
|
||||
<Switch id="trim-defaults-toggle" value={trimDefaults} onChange={this.onTrimDefaultsChange} />
|
||||
</Field>
|
||||
)}
|
||||
<Modal.ButtonRow>
|
||||
|
||||
@@ -223,10 +223,11 @@ export class ShareSnapshot extends PureComponent<Props, State> {
|
||||
</p>
|
||||
</div>
|
||||
<Field label="Snapshot name">
|
||||
<Input width={30} value={snapshotName} onChange={this.onSnapshotNameChange} />
|
||||
<Input id="snapshot-name-input" width={30} value={snapshotName} onChange={this.onSnapshotNameChange} />
|
||||
</Field>
|
||||
<Field label="Expire">
|
||||
<Select
|
||||
inputId="expire-select-input"
|
||||
menuShouldPortal
|
||||
width={30}
|
||||
options={expireOptions}
|
||||
@@ -239,7 +240,7 @@ export class ShareSnapshot extends PureComponent<Props, State> {
|
||||
description="You might need to configure the timeout value if it takes a long time to collect your dashboard
|
||||
metrics."
|
||||
>
|
||||
<Input type="number" width={21} value={timeoutSeconds} onChange={this.onTimeoutChange} />
|
||||
<Input id="timeout-input" type="number" width={21} value={timeoutSeconds} onChange={this.onTimeoutChange} />
|
||||
</Field>
|
||||
|
||||
<Modal.ButtonRow>
|
||||
|
||||
Reference in New Issue
Block a user