# Extend Label & Tooltip \(\#3322\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/5c8db996ee5309bb13d2bae67e6a2c0f77f36826)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 5c8db996ee5309bb13d2bae67e6a2c0f77f36826

Requested commit: 5c8db996ee5309bb13d2bae67e6a2c0f77f36826

Commit: 5c8db996ee5309bb13d2bae67e6a2c0f77f36826

Tree: 29b1e504cd198efc1112417a43a4cc4442a2efe1

Author: Marshall Bowers

Committer: GitHub

## Message

```
Extend Label & Tooltip (#3322)

This PR extends the `Label` component with additional functionality,
partially for use in the `TextTooltip` component.

- [x] `Label` should take a `size` (`Default` & `Small` for now)
  - These should use `text_ui` and `text_ui_sm`
- [x] Fold `LabelColor` and `IconColor` into one enum
  - `TextColor`
- [x] `TextTooltip`'s keybinding field should take whatever we use for
keybindings instead of a string, and render the keybinding component
- [x] `TextTooltip` should use small `Label`s

Release Notes:

- N/A
```

## Parents

- [6add44633433b7f2996900a0125e504ecd735d33](https://git.cafe/gitcafe/zed/commit/6add44633433b7f2996900a0125e504ecd735d33?format=markdown)

- [76c15229c18f9a008209a280212d55ff5fe85930](https://git.cafe/gitcafe/zed/commit/76c15229c18f9a008209a280212d55ff5fe85930?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/5c8db996ee5309bb13d2bae67e6a2c0f77f36826?format=markdown)
