ui: Fix doc tests (#3989)

There were a ton of doc tests that weren't compiling in the `ui` crate,
so this PR fixes them.

Release Notes:

- N/A
684bd530f0Marshall Bowers committed on 1/9/2024, 9:56:28 PM· committed by GitHubparent68d0b46
5 files changedLine totals unavailable