feat(ui): color-code uuid badges and highlight them on hover
- show a circle colored by the first 6 hex digits of the uuid, bordered with the badge text color for contrast in both themes - lighten the uuid badge background on hover - let Badge accept a className - add a storybook story with six sample uuids and a randomize button - bump version to 1.21.0
This commit is contained in:
1 parent
6e9b99e415
commit
2129708819
7 files changed
+86
-6
No files matched your search
@@ -4,6 +4,23 @@
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.badge {
|
||||
transition: background var(--transition);
|
||||
}
|
||||
|
||||
.badge:hover {
|
||||
background: color-mix(in srgb, var(--color-neutral-bg) 85%, white);
|
||||
}
|
||||
|
||||
.swatch {
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
border-radius: 50%;
|
||||
border: 1px solid currentColor;
|
||||
box-sizing: border-box;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.button {
|
||||
all: unset;
|
||||
cursor: pointer;
|
||||
|
||||
Reference in new issue
Block a user