Skip to content

Commit

Permalink
Merge pull request #1648 from Vizzuality/MRXN23-570-review-buttons-in…
Browse files Browse the repository at this point in the history
…-the

[MRXN23-570] solutions table: updates color of button
  • Loading branch information
andresgnlez authored Feb 12, 2024
2 parents 3eb1377 + c75b079 commit 582295b
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import React, { useState } from 'react';

import { Button } from 'components/button/component';
import Table from 'components/table';
import { cn } from 'utils/cn';

import BestCell from './cells/best';
import { SolutionsTableProps } from './types';
Expand All @@ -28,7 +29,9 @@ export const SolutionsTable: React.FC<SolutionsTableProps> = ({
<Button
theme={isSelected ? 'secondary' : 'secondary-alt'}
size="s"
className="flex w-full justify-center"
className={cn('flex w-full justify-center', {
'text-gray-900': !isSelected,
})}
onClick={() => {
setSelectedRowId(row.id);
onSelectSolution(row);
Expand Down

0 comments on commit 582295b

Please sign in to comment.