Enhance tab accessibility and styling with ARIA attributes and refined CSS

This commit is contained in:
2025-02-14 11:02:26 -05:00
parent 0f7a05435d
commit 0955765680
2 changed files with 47 additions and 15 deletions

View File

@@ -80,6 +80,9 @@ body {
border-radius: var(--radius);
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
transition: background-color 0.3s ease, border-color 0.3s ease;
height: 100%;
display: flex;
flex-direction: column;
}
.card-header {
@@ -89,6 +92,7 @@ body {
.card-content {
padding: 1.5rem;
flex: 1;
}
.header-banner {
@@ -151,20 +155,25 @@ body {
.tabs-list {
display: flex;
gap: 0.5rem;
border-bottom: 1px solid hsl(var(--border));
margin-bottom: 1.5rem;
padding: 0 0.5rem;
}
.tab {
position: relative;
padding: 0.75rem 1rem;
border-bottom: 2px solid transparent;
color: hsl(var(--muted-foreground));
font-weight: 500;
font-size: 0.875rem;
cursor: pointer;
transition: all 0.3s ease;
transition: all 0.2s ease;
background: none;
border: none;
outline: none;
user-select: none;
margin-bottom: -1px;
}
.tab:hover {
@@ -173,7 +182,17 @@ body {
.tab[data-state="active"] {
color: hsl(var(--foreground));
border-bottom-color: hsl(var(--primary));
}
.tab[data-state="active"]::after {
content: '';
position: absolute;
left: 0;
bottom: 0;
width: 100%;
height: 2px;
background: hsl(var(--primary));
border-radius: var(--radius) var(--radius) 0 0;
}
.tab-content {
@@ -195,7 +214,7 @@ body {
display: flex;
flex-direction: column;
gap: 1rem;
padding: 1rem;
padding: 1.5rem;
background: hsl(var(--card));
border: 1px solid hsl(var(--border));
border-radius: var(--radius);
@@ -209,13 +228,14 @@ body {
.plugin-header {
display: flex;
align-items: center;
align-items: flex-start;
gap: 1rem;
}
.plugin-icon {
width: 3rem;
height: 3rem;
min-width: 3rem;
border-radius: calc(var(--radius) - 0.25rem);
object-fit: contain;
background: hsl(var(--secondary));
@@ -247,6 +267,13 @@ body {
overflow: hidden;
}
/* Images */
img {
max-width: 100%;
height: auto;
}
/* Badges */
.badge {
display: inline-flex;
align-items: center;
@@ -257,6 +284,7 @@ body {
background: hsl(var(--primary) / 0.1);
color: hsl(var(--primary));
transition: all 0.3s ease;
margin: 0.25rem;
}
.badge-secondary {