mirror of
https://github.com/go-gitea/gitea.git
synced 2026-11-19 15:14:40 +09:00
Elements `<a>` without `href` are not focus-able, screen readers didn't expose it as a button. Use `<button type="button">` for these elements, and fix what the conversion exposed: - Disabled reactions and the copy-content button use `aria-disabled`, because native `disabled` suppresses their tooltips - The random label color button gets a label - Hover, disabled and alignment styles that only matched `<a>` apply to the buttons - Unpinning an issue with the keyboard works, and removing a non-permitted "blocked by" dependency sends the right type Fixes: https://github.com/go-gitea/gitea/issues/40337 Assisted-by: Claude Code:claude-opus-5-5 --------- Signed-off-by: wxiaoguang <wxiaoguang@gmail.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> Co-authored-by: silverwind <me@silverwind.io>
92 lines
1.8 KiB
CSS
92 lines
1.8 KiB
CSS
.bottom-reactions {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 4px;
|
|
margin: 0 14px 14px;
|
|
}
|
|
|
|
.timeline-item .conversation-holder .bottom-reactions {
|
|
margin: 14px 0 0 24px;
|
|
padding-bottom: 8px;
|
|
}
|
|
|
|
.releases .bottom-reactions {
|
|
margin: 14px 0 0;
|
|
}
|
|
|
|
.bottom-reactions .select-reaction,
|
|
.bottom-reactions .ui.label {
|
|
height: 28px;
|
|
}
|
|
|
|
.bottom-reactions .select-reaction {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 28px;
|
|
padding: 0;
|
|
border-radius: var(--border-radius-full);
|
|
border: 1px solid var(--color-light-border);
|
|
background: var(--color-reaction-bg);
|
|
color: var(--color-text-light-1);
|
|
}
|
|
|
|
.bottom-reactions .select-reaction:hover,
|
|
.bottom-reactions .select-reaction[aria-expanded="true"] {
|
|
background: var(--color-hover);
|
|
color: var(--color-text);
|
|
}
|
|
|
|
.bottom-reactions .ui.label {
|
|
padding: 0 8px;
|
|
background: transparent;
|
|
}
|
|
|
|
.bottom-reactions .ui.basic.label[data-has-reacted="true"] {
|
|
border-color: var(--color-primary);
|
|
background: var(--color-reaction-active-bg);
|
|
color: var(--color-text);
|
|
}
|
|
|
|
.bottom-reactions .ui.label:not(.disabled):hover {
|
|
background: var(--color-reaction-hover-bg);
|
|
border-color: var(--color-secondary-dark-2);
|
|
color: var(--color-text);
|
|
}
|
|
|
|
.bottom-reactions .ui.label.disabled {
|
|
cursor: default;
|
|
opacity: 1;
|
|
pointer-events: auto;
|
|
}
|
|
|
|
.bottom-reactions .ui.label .reaction {
|
|
font-size: 16px;
|
|
display: flex;
|
|
}
|
|
|
|
.bottom-reactions .ui.label .reaction img {
|
|
height: 16px;
|
|
aspect-ratio: 1;
|
|
}
|
|
|
|
.reaction-picker {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 4px;
|
|
padding: 0 4px;
|
|
}
|
|
|
|
.tippy-box .reaction-picker .item {
|
|
justify-content: center;
|
|
width: 32px;
|
|
height: 32px;
|
|
margin: 0;
|
|
padding: 0;
|
|
font-size: 17.5px;
|
|
}
|
|
|
|
.tippy-box .reaction-picker .item[data-has-reacted="true"] {
|
|
background: var(--color-reaction-active-bg);
|
|
}
|