Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

aligned text with button #314

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion src/components/Offers/Form/form-components/OfferForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,6 @@ const OfferForm = ({ context, title }) => {
control={control}
errors={errors.requirements || requestErrors.requirements}
disabled={formDisabled}
textFieldProps={{ multiline: true }}
addEntryBtnTestId="requirements-selector"
/>
</Grid>
Expand Down
2 changes: 2 additions & 0 deletions src/components/utils/form/MultiOptionTextField.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@ import useMultiOptionTextFieldStyle from "./multiOptionTextFieldStyle";
import PropTypes from "prop-types";

const RemoveLineButton = ({ onClick, items, i }) => {
const classes = useMultiOptionTextFieldStyle();
const disabled = Object.keys(items).length <= 1;
return (
<FormControl>
<span>
<IconButton
aria-label={`Remove Entry ${i}`}
onClick={onClick}
className={classes.buttom}
disabled={disabled}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

buttom is triggering my OCD.

>
<RemoveCircle />
Expand Down
3 changes: 3 additions & 0 deletions src/components/utils/form/multiOptionTextFieldStyle.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import { makeStyles } from "@material-ui/styles";

export default makeStyles(() => ({
buttom: {
bottom: "10px",
},
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

buttom also here.

addEntryBtn: {
width: "max-content",
},
Expand Down