feat: Study List Filter (#1504)

* Inital changes for study list filters

* Style updates on filter

* Small style changes on filter

* Style changes updates on Input and Label and finish fitler

* Refactor on study list filter

* Remove not used callbackFunction

* Small style change

* Adding underline on Learn more link

* Make sure does not show sortable if have no results

* Some style polish

* Fixing margin on filter

* Adding inherit as color on buttons

* Adding inherit on learn more button color

* Addin border with opacity
This commit is contained in:
Gustavo André Lelis authored and James A. Petts committed 2020-05-15 13:37:38 +02:00
1 parent 2049147021
commit 2138565990
8 files changed
+317 -68

No files matched your search

+12 -4
View File
@@ -61,7 +61,7 @@ const variantClasses = {
};
const sizeClasses = {
small: 'py-2 px-2 text-base',
small: 'py-2 px-2 text-sm',
medium: 'py-2 px-2 text-lg',
large: 'py-2 px-6 text-xl',
};
@@ -97,12 +97,13 @@ const Button = ({
return (
<button
className={classnames(
className,
baseClasses,
variantClasses[variant][color],
radiusClasses[radius],
sizeClasses[size],
disabledClasses[disabled],
className
fullWidthClasses[fullWidth],
disabledClasses[disabled]
)}
type={type}
{...rest}
@@ -119,7 +120,14 @@ Button.propTypes = {
size: PropTypes.oneOf(['small', 'medium', 'large']),
radius: PropTypes.oneOf(['none', 'small', 'medium', 'large', 'full']),
variant: PropTypes.oneOf(['text', 'outlined', 'contained']),
color: PropTypes.oneOf(['default', 'primary', 'secondary']),
color: PropTypes.oneOf([
'default',
'primary',
'secondary',
'white',
'inherit',
]),
fullWidth: PropTypes.bool,
disabled: PropTypes.bool,
type: PropTypes.string,
startIcon: PropTypes.node,