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

D8CORE-3161: reduce load more button size #83

Merged
merged 2 commits into from Sep 3, 2021
Merged

D8CORE-3161: reduce load more button size #83

merged 2 commits into from Sep 3, 2021

Conversation

jenbreese
Copy link
Contributor

@jenbreese jenbreese commented Sep 1, 2021

READY FOR REVIEW

Summary

  • Changed the Load More button from a button-big to a button-primary
  • Moved the SCSS to the Stanford Basic theme.
  • Done on People, Events, and News.
  • Publications already had the primary button size but removed the duplicate code.

Review By (Date)

  • 9/8

Criticality

Urgency

  • Normal

Review Tasks

Setup tasks and/or behavior to test

  1. Check out this branch
  2. Rebuild Cache and import config drush cr ; drush ci
  3. Create/Generate enough content to get the load more button on the News, Events and People list page
  4. Verify the large Load More button is now a regular sized one.
  5. Create list paragraphs with the 4 types with a number cap and verify the button is small on the list too.

New
Screen Shot 2021-09-01 at 10 51 40 AM

Old
Screen Shot 2021-09-01 at 10 51 55 AM

Site Configuration Sync

  • Is there a config:export in this PR that changes the config sync directory? NO

Front End Validation

Backend / Functional Validation

Code

  • Are the naming conventions following our standards?
  • Does the code have sufficient inline comments?
  • Is there anything in this code that would be hidden or hard to discover through the UI?
  • Are there any code smells?
  • Are tests provided? eg (unit, behat, or codeception)

Code security

General

  • Is there anything included in this PR that is not related to the problem it is trying to solve?
  • Is the approach to the problem appropriate?

Affected Projects or Products

  • Affects all sites using or inheriting from the Stanford Basic theme

Associated Issues and/or People

Resources

Copy link
Contributor

@pookmish pookmish left a comment

Choose a reason for hiding this comment

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

seems legit

@pookmish
Copy link
Contributor

pookmish commented Sep 1, 2021

Just before I merged this i saw the other 3 identical PRs. Should we just generalize it and throw it into stanford_basic?

@jenbreese
Copy link
Contributor Author

I'm not sure. If it isn't there for News (I think) the button is just a link. Should the modules be pretty close to stand alone without the Stanford Basic theme?

@pookmish
Copy link
Contributor

pookmish commented Sep 1, 2021

The modules can be "good enough". we could remove the styling from the module and move it to a more generalized location.

I'm toying with the idea of a stanford_profile_theme so that we can just move everything to that one location and deprecate all of the styles in the modules (or move them to a submodule)

@jenbreese
Copy link
Contributor Author

In that case I think it is a good idea. It is 3x the same code.

@pookmish pookmish merged commit 18be841 into 8.x-1.x Sep 3, 2021
@pookmish pookmish deleted the D8CORE-3161 branch September 3, 2021 00:21
pookmish added a commit that referenced this pull request Sep 3, 2021
- D8CORE-3161: reduce load more button size (#83)
- D8CORE-4643: updating the skip links and moving to one filter by menu (#80)
- D8CORE-4667: Removed duplicate date read out for screen readers.  (#82)
- D8CORE-4186: removing pipe if not neeeded (#81)
- D8CORE-2520: date labeling for Events (#79)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants