ui: Give NumericSteppers an ID (#15344)

This PR gives the `NumericStepper` component an ID.

This prevents the UI and buffer font size settings controls from having
their increment/decrement buttons visually change when the other one is
pressed.

Release Notes:

- N/A
This commit is contained in:
Marshall Bowers 2024-07-27 13:02:27 -04:00 committed by GitHub
parent c7a78fafac
commit f1d777434b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 8 additions and 0 deletions

View file

@ -260,6 +260,7 @@ impl RenderOnce for UiFontSizeControl {
.gap_2()
.child(Icon::new(IconName::FontSize))
.child(NumericStepper::new(
"ui-font-size",
value.to_string(),
move |_, cx| {
Self::write(value - px(1.), cx);