Skip to content

Commit

Permalink
Merge pull request #84 from NordicSemiconductor/NCD-773-2_style_fixup
Browse files Browse the repository at this point in the history
NCD-773: Fix style error from tailwind stanza order
  • Loading branch information
cybic authored Mar 21, 2024
2 parents a1f72de + b65c672 commit d1ee30b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/features/VoltageConfiguration/VoltageConfiguration.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import React from 'react';
import { useDispatch, useSelector } from 'react-redux';
import {
Button,
Card,
classNames,
NumberInput,
Expand Down Expand Up @@ -117,11 +116,12 @@ const PresetButton = ({ pmicPort, voltage, selected }: PresetButtonProps) => {
const dispatch = useDispatch();

return (
<Button
variant="secondary"
<button
type="button"
className={classNames(
'tw-h-5 tw-w-full tw-border-gray-200',
selected && 'tw-bg-gray-50'
'tw-preflight tw-h-5 tw-w-full tw-border-gray-200 tw-px-2 tw-text-xs',
'tw-border tw-text-gray-700 active:enabled:tw-bg-gray-50',
selected ? 'tw-bg-gray-50' : 'tw-bg-white'
)}
onClick={() => {
dispatch(
Expand All @@ -133,7 +133,7 @@ const PresetButton = ({ pmicPort, voltage, selected }: PresetButtonProps) => {
}}
>
{(voltage / 1000).toFixed(1)}V
</Button>
</button>
);
};

Expand Down

0 comments on commit d1ee30b

Please sign in to comment.