Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion src/components/FilterPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ export default function FilterPanel() {
<button
key={dept}
onClick={() => toggleDepartment(dept)}
aria-pressed={isActive}
className={`rounded-md px-3 py-1.5 text-xs font-medium transition-all ${
isActive
? 'bg-[#6C63FF] text-white'
Expand Down Expand Up @@ -135,6 +136,7 @@ export default function FilterPanel() {
<button
key={risk}
onClick={() => toggleRiskLevel(risk)}
aria-pressed={isActive}
className={`rounded-md px-3 py-1.5 text-xs font-medium capitalize transition-all ${
isActive
? `bg-[${colors.bg}] text-white`
Expand Down Expand Up @@ -167,6 +169,7 @@ export default function FilterPanel() {
<button
key={type}
onClick={() => toggleEventType(type)}
aria-pressed={isActive}
className={`rounded-md px-3 py-1.5 text-xs font-medium capitalize transition-all ${
isActive
? 'bg-[#6C63FF] text-white'
Expand All @@ -182,8 +185,13 @@ export default function FilterPanel() {

{/* Show Only Unresolved Toggle */}
<div className="flex items-center justify-between rounded-md border border-[#E5E5E5] bg-[#FAFAFA] p-3">
<span className="text-xs text-[#666666]">Show only unresolved</span>
<span id="show-unresolved-label" className="text-xs text-[#666666]">
Show only unresolved
</span>
<button
role="switch"
aria-checked={filters.showOnlyUnresolved}
aria-labelledby="show-unresolved-label"
onClick={() => setFilters({ showOnlyUnresolved: !filters.showOnlyUnresolved })}
className={`relative inline-flex h-6 w-11 items-center rounded-full transition-colors ${
filters.showOnlyUnresolved ? 'bg-[#6C63FF]' : 'bg-[#E5E5E5]'
Expand Down
Loading