Files
mxaccessgw/docs/ui-validation/host/Components/StyleFixture.razor
T
Joseph Doherty 26a90883fa
ci / java (push) Failing after 15m11s
ci / nightly-windev (push) Failing after 10m18s
ci / portable (push) Failing after 27m42s
ci / windows-x86 (push) Failing after 22m19s
Unify gateway styling and preserve identity through recovery
2026-11-13 20:12:00 -05:00

23 lines
1.6 KiB
Plaintext

@namespace MxUiCanary.Components
@page "/style-fixture"
@inject IJSRuntime JS
<ThemeShell Product="Synthetic style fixture"><ChildContent>
<h1>Component states</h1>
<p>Shared components with MX host adapters; no operation provider.</p>
<div class="d-flex gap-2 flex-wrap">
<TechButton id="style-primary">Primary action</TechButton>
<TechButton Variant="ButtonVariant.Secondary">Secondary action</TechButton>
<TechButton Variant="ButtonVariant.Danger">Danger action</TechButton>
<TechButton disabled>Disabled action</TechButton>
<TechButton Busy="true" BusyText="Working…">Busy action</TechButton>
</div>
<TechField Label="Fixture field" For="style-field"><input id="style-field" class="form-control" /></TechField>
<section class="dashboard-section">
<p><span class="quality-chip quality-good">Good</span> <span class="quality-chip quality-bad">Bad</span></p>
<p><span class="alarm-state alarm-state-active">Active</span> <span class="alarm-state alarm-state-acked">Acknowledged</span> <span class="alarm-state alarm-state-other">Unknown</span></p>
<p><span class="text-secondary">Secondary text</span> <span class="text-success">Success text</span> <span class="text-warning">Warning text</span> <span class="text-danger">Danger text</span> <span class="text-info">Information text</span></p>
<div class="alert alert-success">Success notice</div><div class="alert alert-danger">Error notice</div><div class="alert alert-info">Information notice</div><div class="alert alert-warning">Warning notice</div>
</section>
</ChildContent></ThemeShell>
@code { protected override async Task OnAfterRenderAsync(bool firstRender){if(firstRender)await JS.InvokeVoidAsync("mxCanaryReady");} }