Skip to content

Commit

Permalink
fix insight icons
Browse files Browse the repository at this point in the history
  • Loading branch information
benhammondmusic committed Jan 10, 2025
1 parent bb4c20a commit 7fcb0ee
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 8 deletions.
1 change: 0 additions & 1 deletion frontend/src/cards/CardWrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ function CardWrapper(props: {
return (
<article
className={`relative m-2 rounded-sm bg-white p-3 shadow-raised ${props.className}`}
tabIndex={-1}
>
{shouldShowInsightDisplay && (
<InsightDisplay
Expand Down
1 change: 1 addition & 0 deletions frontend/src/cards/ui/InsightDisplay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ const InsightDisplay: React.FC<InsightDisplayProps> = ({
return (
<>
<IconButton
aria-label={insight ? 'Clear insight' : 'Generate insight'}
onClick={insight ? handleClearInsight : handleGenerateInsight}
className='absolute top-2 right-2 z-10'
disabled={isGeneratingInsight}
Expand Down
7 changes: 0 additions & 7 deletions frontend/src/styles/HetComponents/HetTermUnderline.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ interface HetTermUnderlineProps {
export default function HetTermUnderline({
children,
className,
tabIndex = 0,
}: HetTermUnderlineProps) {
const spanRef = useRef<HTMLSpanElement>(null)
const [isVisible, setIsVisible] = useState(false)
Expand Down Expand Up @@ -69,12 +68,6 @@ export default function HetTermUnderline({
backgroundSize: '0% 8px',
backgroundRepeat: 'no-repeat',
}}
tabIndex={tabIndex}
onKeyDown={(e) => {
if (e.key === 'Enter' || e.key === ' ') {
e.preventDefault()
}
}}
>
{children}
</span>
Expand Down

0 comments on commit 7fcb0ee

Please sign in to comment.