Reposition the remove buttons on team management page. #3485
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR addresses #3477
What does this PR do?
The remove buttons under the Managers section do not line up with the
ones under the Members section. For consistency, this commit applies
similar styles to all remove buttons under the sections mentions above.
How was the issue addressed?
The form that renders the remove button and the manager's gravatar
was wrapped in a
col-*
class that aligns with the one used under themembers. The css classes on the button were also changed to be similar
to the ones under the members.
Does this cause any side effects?
No however I feel that since we are using the same class on both buttons,
we can perhaps remove the duplicate class (i.e. we can remove either one
of
.manager_delete
or.member_delete
and remove the other tosomething more generic such as
.person_delete
, I am open tosuggestions on the class name)
Further discussions
While I was in there, I noticed that we have inline styles on some elements,
is this intentional? Can we pull these out into a stylesheet? Perhaps there is a
chance for some refactor since this is a smell?
We have the same component (i.e. person gravatar + remove button) being
rendered under both Members and Managers yet they have been done using
two different approach. Under Managers, we are using a form to issue a
post
request whereas under members we are issuing an AJAX request. Can we
perhaps pick on method and then extract this component into a partial?
please review @tejasbubane @Insti