Figma component
Overview
The Field quarter lets users pick a quarter and a year, for example for a quarterly report or a forecast.
Status: planned. The design is ready in Figma. The code component is not released yet: the Code column will be completed once it is merged.
Key features
- Typed or picked: users can type the value or choose it in the quarter picker.
- Format: quarter and year.
- Two sizes: md and sm.
- States: Default, Hover, Focus, Disabled and Readonly, plus Error.
- Themes: Spark and Ocean, light and dark.
Anatomy
- Label (optional): names the value.
- Input: shows the selected value or the placeholder.
- Picker button: opens the quarter picker.
- Description (optional): extra guidance under the field.
Properties
|
Figma |
Code |
Notes |
|---|---|---|
|
State |
— |
Default, Hover, Focus, Disabled, Readonly. |
|
Size |
— |
md (40 px) or sm (32 px). |
|
Error |
— |
Red border and error icon. |
|
Has field label |
— |
Shows the label above the field. |
|
Has description, ↳ Description |
— |
Shows the description under the field. |
|
Has error description, ↳ Error description |
— |
Shown when Error is on. |
|
Has leading content, Has trailing content |
— |
Optional content inside the input. |
|
Show calendar |
— |
Shows the quarter picker in Figma. In code it opens from the picker button. |
Look and feel
States
Error
Show an error description that says what is wrong and how to fix it.
Sizes
Use md by default and sm in dense layouts.
Picker
Themes
Spark and Ocean, in light and dark mode.
Behavior
- Users can type the value or select it in the quarter picker. Both stay in sync.
- The picker button opens the quarter picker; it closes after selection, on Escape or on a click outside.
- Readonly shows the value without letting users change it. Disabled blocks any interaction.
- Like the other Nova fields, the field has a maximum width of 480 px (form/max-width).
Accessibility
- Always give the field a visible label; the placeholder is not a label.
- The picker button has an accessible name, for example "Open quarter picker".
- The quarter picker can be used with the keyboard; focus returns to the field when it closes.
- Error descriptions are announced with the field.
Content
- Write labels as short nouns, for example "Reporting quarter".
- Use the description for the expected format or a constraint, not to repeat the label.
- Follow the Nova writing guidelines for dates and times.
Usage
Use a clear label and add a description when the format or a constraint needs explaining.
Don't remove the label: users can't tell what value is expected.
Related
- Date, Daterange and Time: the other fields of the date and time family.
Links
The Figma file contains the latest UI designs. Links to Web Component, Blazor, Angular, React and VueJS will be added once the component is released.
Feedback
Have feedback, an idea, or a bug to report? Head over to our Contributions page.