-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Fix validation errors on lists page #4482
Fix validation errors on lists page #4482
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The ID on the body tag is also problematic IMO, and we should seek to remove it as part of these changes.
5220c80
to
5a18dff
Compare
@jdlrobson, I have made the required changes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please update body# selectors in CSS .
@jdlrobson, some styles are directly applied to the body# selectors, so how should I go about it? |
Note the body id selectors predate the page specific CSS.
For the nested CSS, it should be fine to move them out of the body tag and remove a level of indentation. |
5a18dff
to
0a59073
Compare
@jdlrobson I have moved the internal CSS. The color mentioned are not present in colors.less so should I add them? I was wondering how all these CSS are linked to the template.html files? |
The magic happens in openlibrary/templates/site/head.html Ideally we'd have less of these page specific stylesheets but there's a lot of clean up to do first. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are some linting issues. Run npm run lint
locally.
Will pull this down for testing once that's done.
@jdlrobson what about color-no-hex rule? |
Make sure you use one of the variables in static/css/less/colors.less. Add a new one if necessary. |
9cdeeaa
to
86139db
Compare
@jdlrobson Now you can review this PR |
86139db
to
ba0e4ec
Compare
} | ||
// Specific to borrowTable component | ||
/* stylelint-disable selector-max-specificity */ | ||
#borrowTable { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps in a follow up we could move this into legacy-borrowTable-plain.less for consistency with legacy-borrowTable-adminUser.less
.
The eventual goal would be to unify these styles with those in legacy-borrowTable-adminUser.less and static/css/components/borrowTable.less
* Removed Inlined CSS from borrow_admin.html and moved into stylesheets * Removed body id from all pages * Updated body# selectors with styles in associated page entry points Fixes: internetarchive#4482
* Removed Inlined CSS from borrow_admin.html and moved into stylesheets * Removed body id from all pages * Updated body# selectors with styles in associated page entry points Fixes: internetarchive#4482
* Removed Inlined CSS from borrow_admin.html and moved into stylesheets * Removed body id from all pages * Updated body# selectors with styles in associated page entry points Fixes: internetarchive#4482
* Removed Inlined CSS from borrow_admin.html and moved into stylesheets * Removed body id from all pages * Updated body# selectors with styles in associated page entry points Fixes: internetarchive#4482
* Removed Inlined CSS from borrow_admin.html and moved into stylesheets * Removed body id from all pages * Updated body# selectors with styles in associated page entry points Fixes: internetarchive#4482
* Removed Inlined CSS from borrow_admin.html and moved into stylesheets * Removed body id from all pages * Updated body# selectors with styles in associated page entry points Fixes: internetarchive#4482
Closes #4472
Stakeholders
@jdlrobson