Skip to content

Commit

Permalink
Merge pull request #108 from rupak-nm/filters-update
Browse files Browse the repository at this point in the history
Marketplace filters update
  • Loading branch information
flashburst authored Oct 16, 2023
2 parents 8a32e39 + 539acd7 commit 4f16753
Show file tree
Hide file tree
Showing 6 changed files with 1,398 additions and 8 deletions.
5 changes: 3 additions & 2 deletions src/components/Radio/Radio.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,17 @@
* @returns
*/

const Radio = ({ label, checked, onChange }) => {
const Radio = ({ label, checked, onChange, ...rest }) => {
return (
<label className='custom checkbox container'>
<label className='custom checkbox container' aria-disabled={rest.disabled ? 'true' : 'false'}>
<input
type='radio'
className={checked ? 'checked' : undefined}
onChange={e => {
onChange(e.target.checked)
}}
checked={checked}
{...rest}
/>
{label}
</label>
Expand Down
6 changes: 5 additions & 1 deletion src/components/Radio/Radio.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,8 @@
display: flex;
align-items: center;
gap: 12px;
}

&[aria-disabled="true"] {
cursor: not-allowed;
}
}
Loading

0 comments on commit 4f16753

Please sign in to comment.