🐛(react) change most tertiary buttons to tertiary-text
Since the addition of tertiary-text variant, the original tertiary variant has seen its background color changing from transparent to greyscale-100, the change has impacted lots of components making them look odd. So that's why I updated most of old tertiary to tertiary-text. Fixes #223
This commit is contained in:
@@ -82,7 +82,7 @@ export const ClientSideWithoutPagination = () => {
|
|||||||
id: "actions",
|
id: "actions",
|
||||||
renderCell: () => (
|
renderCell: () => (
|
||||||
<Button
|
<Button
|
||||||
color="tertiary"
|
color="tertiary-text"
|
||||||
size="small"
|
size="small"
|
||||||
icon={<span className="material-icons">delete</span>}
|
icon={<span className="material-icons">delete</span>}
|
||||||
/>
|
/>
|
||||||
@@ -225,7 +225,7 @@ export const FullServerSide = () => {
|
|||||||
id: "actions",
|
id: "actions",
|
||||||
renderCell: () => (
|
renderCell: () => (
|
||||||
<Button
|
<Button
|
||||||
color="tertiary"
|
color="tertiary-text"
|
||||||
size="small"
|
size="small"
|
||||||
icon={<span className="material-icons">delete</span>}
|
icon={<span className="material-icons">delete</span>}
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -222,7 +222,7 @@ const CalendarAux = forwardRef(
|
|||||||
<div className="c__calendar__wrapper__header">
|
<div className="c__calendar__wrapper__header">
|
||||||
<div className="c__calendar__wrapper__header__actions">
|
<div className="c__calendar__wrapper__header__actions">
|
||||||
<Button
|
<Button
|
||||||
color="tertiary"
|
color="tertiary-text"
|
||||||
size="small"
|
size="small"
|
||||||
icon={<span className="material-icons">navigate_before</span>}
|
icon={<span className="material-icons">navigate_before</span>}
|
||||||
{...{
|
{...{
|
||||||
@@ -236,7 +236,7 @@ const CalendarAux = forwardRef(
|
|||||||
/>
|
/>
|
||||||
<Button
|
<Button
|
||||||
className="c__calendar__wrapper__header__actions__dropdown"
|
className="c__calendar__wrapper__header__actions__dropdown"
|
||||||
color="tertiary"
|
color="tertiary-text"
|
||||||
size="small"
|
size="small"
|
||||||
iconPosition="right"
|
iconPosition="right"
|
||||||
icon={<span className="material-icons">arrow_drop_down</span>}
|
icon={<span className="material-icons">arrow_drop_down</span>}
|
||||||
@@ -247,7 +247,7 @@ const CalendarAux = forwardRef(
|
|||||||
)}
|
)}
|
||||||
</Button>
|
</Button>
|
||||||
<Button
|
<Button
|
||||||
color="tertiary"
|
color="tertiary-text"
|
||||||
size="small"
|
size="small"
|
||||||
icon={<span className="material-icons">navigate_next</span>}
|
icon={<span className="material-icons">navigate_next</span>}
|
||||||
{...{
|
{...{
|
||||||
@@ -262,7 +262,7 @@ const CalendarAux = forwardRef(
|
|||||||
</div>
|
</div>
|
||||||
<div className="c__calendar__wrapper__header__actions">
|
<div className="c__calendar__wrapper__header__actions">
|
||||||
<Button
|
<Button
|
||||||
color="tertiary"
|
color="tertiary-text"
|
||||||
size="small"
|
size="small"
|
||||||
icon={<span className="material-icons">navigate_before</span>}
|
icon={<span className="material-icons">navigate_before</span>}
|
||||||
onClick={() => state.focusPreviousSection(true)}
|
onClick={() => state.focusPreviousSection(true)}
|
||||||
@@ -277,7 +277,7 @@ const CalendarAux = forwardRef(
|
|||||||
/>
|
/>
|
||||||
<Button
|
<Button
|
||||||
className="c__calendar__wrapper__header__actions__dropdown"
|
className="c__calendar__wrapper__header__actions__dropdown"
|
||||||
color="tertiary"
|
color="tertiary-text"
|
||||||
size="small"
|
size="small"
|
||||||
iconPosition="right"
|
iconPosition="right"
|
||||||
icon={<span className="material-icons">arrow_drop_down</span>}
|
icon={<span className="material-icons">arrow_drop_down</span>}
|
||||||
@@ -288,7 +288,7 @@ const CalendarAux = forwardRef(
|
|||||||
)}
|
)}
|
||||||
</Button>
|
</Button>
|
||||||
<Button
|
<Button
|
||||||
color="tertiary"
|
color="tertiary-text"
|
||||||
size="small"
|
size="small"
|
||||||
icon={<span className="material-icons">navigate_next</span>}
|
icon={<span className="material-icons">navigate_next</span>}
|
||||||
onClick={() => state.focusNextSection(true)}
|
onClick={() => state.focusNextSection(true)}
|
||||||
|
|||||||
@@ -65,7 +65,7 @@ export const CalendarCell = ({ state, date }: CalendarCellProps) => {
|
|||||||
: isSelected
|
: isSelected
|
||||||
)
|
)
|
||||||
? "primary"
|
? "primary"
|
||||||
: "tertiary"
|
: "tertiary-text"
|
||||||
}
|
}
|
||||||
className={classNames(
|
className={classNames(
|
||||||
"c__calendar__wrapper__grid__week-row__button",
|
"c__calendar__wrapper__grid__week-row__button",
|
||||||
|
|||||||
@@ -149,7 +149,7 @@ const DatePickerAux = forwardRef(
|
|||||||
: "components.forms.date_picker.toggle_button_aria_label_open",
|
: "components.forms.date_picker.toggle_button_aria_label_open",
|
||||||
),
|
),
|
||||||
}}
|
}}
|
||||||
color="tertiary"
|
color="tertiary-text"
|
||||||
size="small"
|
size="small"
|
||||||
className="c__date-picker__wrapper__toggle"
|
className="c__date-picker__wrapper__toggle"
|
||||||
onClick={pickerState.toggle}
|
onClick={pickerState.toggle}
|
||||||
@@ -166,7 +166,7 @@ const DatePickerAux = forwardRef(
|
|||||||
"c__date-picker__inner__action--hidden":
|
"c__date-picker__inner__action--hidden":
|
||||||
labelAsPlaceholder || disabled,
|
labelAsPlaceholder || disabled,
|
||||||
})}
|
})}
|
||||||
color="tertiary"
|
color="tertiary-text"
|
||||||
size="nano"
|
size="nano"
|
||||||
icon={<span className="material-icons">cancel</span>}
|
icon={<span className="material-icons">cancel</span>}
|
||||||
onClick={onClear}
|
onClick={onClear}
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ export const FileUploaderMulti = forwardRef<
|
|||||||
<div className="c__file-uploader__file__specs">
|
<div className="c__file-uploader__file__specs">
|
||||||
<span>{formatBytes(file.size)}</span>
|
<span>{formatBytes(file.size)}</span>
|
||||||
<Button
|
<Button
|
||||||
color="tertiary"
|
color="tertiary-text"
|
||||||
size="nano"
|
size="nano"
|
||||||
aria-label={t(
|
aria-label={t(
|
||||||
"components.forms.file_uploader.delete_file_name",
|
"components.forms.file_uploader.delete_file_name",
|
||||||
|
|||||||
@@ -135,7 +135,7 @@ export const SelectMonoAux = ({
|
|||||||
{clearable && !disabled && downshiftReturn.selectedItem && (
|
{clearable && !disabled && downshiftReturn.selectedItem && (
|
||||||
<>
|
<>
|
||||||
<Button
|
<Button
|
||||||
color="tertiary"
|
color="tertiary-text"
|
||||||
size="nano"
|
size="nano"
|
||||||
aria-label={t(
|
aria-label={t(
|
||||||
"components.forms.select.clear_button_aria_label",
|
"components.forms.select.clear_button_aria_label",
|
||||||
@@ -152,7 +152,7 @@ export const SelectMonoAux = ({
|
|||||||
)}
|
)}
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
color="tertiary"
|
color="tertiary-text"
|
||||||
size="nano"
|
size="nano"
|
||||||
className="c__select__inner__actions__open"
|
className="c__select__inner__actions__open"
|
||||||
icon={
|
icon={
|
||||||
|
|||||||
@@ -109,7 +109,7 @@ export const SelectMultiAux = ({ children, ...props }: SelectMultiAuxProps) => {
|
|||||||
props.selectedItems.length > 0 && (
|
props.selectedItems.length > 0 && (
|
||||||
<>
|
<>
|
||||||
<Button
|
<Button
|
||||||
color="tertiary"
|
color="tertiary-text"
|
||||||
size="nano"
|
size="nano"
|
||||||
aria-label={t(
|
aria-label={t(
|
||||||
"components.forms.select.clear_all_button_aria_label",
|
"components.forms.select.clear_all_button_aria_label",
|
||||||
@@ -125,7 +125,7 @@ export const SelectMultiAux = ({ children, ...props }: SelectMultiAuxProps) => {
|
|||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
<Button
|
<Button
|
||||||
color="tertiary"
|
color="tertiary-text"
|
||||||
size="nano"
|
size="nano"
|
||||||
className="c__select__inner__actions__open"
|
className="c__select__inner__actions__open"
|
||||||
icon={
|
icon={
|
||||||
|
|||||||
@@ -103,7 +103,7 @@ export const Pagination = ({
|
|||||||
<div className="c__pagination">
|
<div className="c__pagination">
|
||||||
<div className="c__pagination__list">
|
<div className="c__pagination__list">
|
||||||
<Button
|
<Button
|
||||||
color="tertiary"
|
color="tertiary-text"
|
||||||
aria-label={t("components.pagination.previous_aria")}
|
aria-label={t("components.pagination.previous_aria")}
|
||||||
onClick={onPreviousClick}
|
onClick={onPreviousClick}
|
||||||
disabled={!canPrevious}
|
disabled={!canPrevious}
|
||||||
@@ -116,7 +116,7 @@ export const Pagination = ({
|
|||||||
{_page > (pageList[index - 1] || 0) + 1 && <span>...</span>}
|
{_page > (pageList[index - 1] || 0) + 1 && <span>...</span>}
|
||||||
{_page === page ? (
|
{_page === page ? (
|
||||||
<Button
|
<Button
|
||||||
color="tertiary"
|
color="tertiary-text"
|
||||||
active={true}
|
active={true}
|
||||||
aria-label={t("components.pagination.current_page_aria", {
|
aria-label={t("components.pagination.current_page_aria", {
|
||||||
page: _page,
|
page: _page,
|
||||||
@@ -127,7 +127,7 @@ export const Pagination = ({
|
|||||||
</Button>
|
</Button>
|
||||||
) : (
|
) : (
|
||||||
<Button
|
<Button
|
||||||
color="tertiary"
|
color="tertiary-text"
|
||||||
aria-label={t("components.pagination.goto_page_aria", {
|
aria-label={t("components.pagination.goto_page_aria", {
|
||||||
page: _page,
|
page: _page,
|
||||||
})}
|
})}
|
||||||
@@ -140,7 +140,7 @@ export const Pagination = ({
|
|||||||
</Fragment>
|
</Fragment>
|
||||||
))}
|
))}
|
||||||
<Button
|
<Button
|
||||||
color="tertiary"
|
color="tertiary-text"
|
||||||
aria-label={t("components.pagination.next_aria")}
|
aria-label={t("components.pagination.next_aria")}
|
||||||
onClick={onNextClick}
|
onClick={onNextClick}
|
||||||
disabled={!canNext}
|
disabled={!canNext}
|
||||||
|
|||||||
Reference in New Issue
Block a user