Skip to content

Commit

Permalink
chore: remove class data-files-btn (#1029)
Browse files Browse the repository at this point in the history
* chore: remove class data-files-btn

This class is assigned to buttons that:
- **either** have Bootstrap btn-primary
    (in which case the `.workbench-content .btn-primary` styles it)
- **or** are our custom `<Button>`
    (in which case the `composes: c-button` styles it)

* doc: save `chore/remove-data-files-btn` PR desc

* chore: delete chore-remove-data-files-btn-pr-desc.md

* chore: delete chore-remove-data-files-btn-pr-desc.md

* style: npm run prettier:fix
  • Loading branch information
wesleyboar authored Jan 9, 2025
1 parent de51694 commit 8582dfa
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ const DataFilesModalButtonCell = ({
<span>
<Button
type="primary"
className="float-right data-files-btn"
className="float-right"
disabled={disabled}
onClick={onClick}
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ const ProjectRoleSelector = ({ projectId, username }) => {
{data.role !== selectedRole && !isFetching && (
<Button
type="primary"
className="data-files-btn"
onClick={() =>
setProjectRole({ oldRole: data.role, newRole: selectedRole })
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,7 @@ const DataFilesAddButton = ({ readOnly }) => {
return (
<>
<Dropdown isOpen={dropdownOpen} toggle={toggleDropdown}>
<DropdownToggle
color="primary"
id="data-files-add"
className="data-files-btn"
>
<DropdownToggle color="primary" id="data-files-add">
+ Add
</DropdownToggle>
<DropdownMenu>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,5 @@
@import '../../../styles/components/dropdown-menu.css';

.data-files-btn {
background-color: var(--global-color-accent--normal);
border-color: var(--global-color-accent--normal);
border-radius: 0;
}

.data-files-btn-cancel {
border-radius: 0;
}

#data-files-add {
width: 100%;
}
Expand Down

0 comments on commit 8582dfa

Please sign in to comment.