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

Bug/WP-50: Fix sizing of buttons "as-link" #986

Merged
merged 11 commits into from
Nov 5, 2024
Merged

Bug/WP-50: Fix sizing of buttons "as-link" #986

merged 11 commits into from
Nov 5, 2024

Conversation

jmcmillenmusic
Copy link
Collaborator

@jmcmillenmusic jmcmillenmusic commented Oct 17, 2024

Overview

There was a bug that caused the "as-link" buttons to appear smaller than other buttons (0.78 rem as opposed to 1 rem).

Related

Changes

After inspecting the as-link button in question, I navigated to the file that set the font-size to 0.78 rem and adjusted it to 1 rem.

Testing

  1. Log in to cep.test/workbench.
  2. Navigate to the History section in the sidebar.
  3. In both Jobs and Historic Jobs, the "Mark All as Viewed" as-link button should now appear bigger (16px).

UI

image

Notes

I created a Shared Workspace to test out the button re-sizing, and it works there, too.

@jmcmillenmusic
Copy link
Collaborator Author

Because there were commits for this PR that did not belong here, I worked with Frank to correct this. This will need to be re-reviewed even though nothing has technically changed.

Copy link
Contributor

@edmondsgarrett edmondsgarrett left a comment

Choose a reason for hiding this comment

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

History link change looks good here, but this change does not address the bug directly - we are looking for any button of type='link' to have a font size of 16px, and this change will only reach this one button in the header of the History component.

I suggest taking a look at the _common Button component and how the style 'as-link' is applied to an instance of a <Button type='link' ... />.

Let me know if I can help with making this change!

Copy link

codecov bot commented Oct 21, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 73.04%. Comparing base (fde011b) to head (ce268ee).
Report is 1 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #986   +/-   ##
=======================================
  Coverage   73.04%   73.04%           
=======================================
  Files         532      532           
  Lines       33235    33235           
  Branches     2966     2966           
=======================================
  Hits        24276    24276           
  Misses       8764     8764           
  Partials      195      195           
Flag Coverage Δ
javascript 75.98% <ø> (ø)
unittests 60.44% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Copy link
Contributor

@fnets fnets left a comment

Choose a reason for hiding this comment

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

Some very minor change requests, but it looks good to me! Great work!

client/src/components/History/History.module.scss Outdated Show resolved Hide resolved
client/src/components/History/History.module.scss Outdated Show resolved Hide resolved
client/src/components/_common/Button/Button.module.css Outdated Show resolved Hide resolved
jmcmillenmusic and others added 3 commits October 28, 2024 09:07
Removing commented-out code per Frank's recommendation

Co-authored-by: fnets <fnetscher@tacc.utexas.edu>
Removing commented-out code per Frank's recommendation

Co-authored-by: fnets <fnetscher@tacc.utexas.edu>
Removed commented-out code per Frank's recommendation

Co-authored-by: fnets <fnetscher@tacc.utexas.edu>
@jmcmillenmusic jmcmillenmusic requested a review from fnets October 28, 2024 14:34
Copy link
Contributor

@fnets fnets left a comment

Choose a reason for hiding this comment

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

LGTM! Great work.

Copy link
Collaborator

@jalowe13 jalowe13 left a comment

Choose a reason for hiding this comment

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

LGTM!

@jmcmillenmusic
Copy link
Collaborator Author

History link change looks good here, but this change does not address the bug directly - we are looking for any button of type='link' to have a font size of 16px, and this change will only reach this one button in the header of the History component.

I suggest taking a look at the _common Button component and how the style 'as-link' is applied to an instance of a <Button type='link' ... />.

Let me know if I can help with making this change!

Hi, Garrett! It looks like this is blocking the merge after Jacob and Frank approved the changes.
Can you unblock this, please?

Copy link
Contributor

@edmondsgarrett edmondsgarrett left a comment

Choose a reason for hiding this comment

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

LGTM! Another instance of this is in Data Files, the 'View Full Path' button, and that is also correctly styled now.

@edmondsgarrett edmondsgarrett merged commit f80c7ee into main Nov 5, 2024
6 checks passed
@edmondsgarrett edmondsgarrett deleted the bug/WP-50 branch November 5, 2024 20:01
Comment on lines +38 to +41
.root.as-link {
font-size: 1rem;
}

Copy link
Member

Choose a reason for hiding this comment

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

⚠️ This change affects at least one other view (move/copy modal), because this style applies to all .as-link buttons.

fix.WP-782.mov

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants