az-digital / arizona-bootstrap Goto Github PK
View Code? Open in Web Editor NEWUArizona's front-end toolkit based on Bootstrap 4 and 5.
Home Page: https://digital.arizona.edu/arizona-bootstrap
License: MIT License
UArizona's front-end toolkit based on Bootstrap 4 and 5.
Home Page: https://digital.arizona.edu/arizona-bootstrap
License: MIT License
Cameron - We are waiting on departmental NetIDs for using Proxima Nova. 7/30
Currently, Arizona Bootstrap partly follows arbitrary recent changes to the upstream Twitter Bootstrap v4-dev branch, and partly numbered upstream releases.
Arizona Bootstrap developers don't have a clear upstream reference for any significant changes (for example the feature/93 restoration of JS tooling).
Explicitly tie the routine housekeeping Arizona Bootstrap updates (needed to keep ahead of security issues and upstream bug fixes) to tagged upstream releases.
The mobile menu will be more usable if we are able to have multiple sections open at the same time.
Currently, when you expand a menu item, it will close the other expanded item. This can cause you to lose your place in the menu if the expanded item is above your scrolled location.
Expanding additional sections of the menu will not close currently expanded sections.
The current design mockups include multiple sections expanded at once.
It appears that the transparent background classes might have been accidentally overlooked in recent changes to the text color + background color CSS.
Also noticed that the .sans
class it not working. Will also correct that while I'm fixing this bug.
Transparent background colors are no longer receiving the proper text color to ensure accessibility/contrast. Possibly related to #22 but haven't verified yet.
Add a div
with a transparent background color (i.e., .bg-transparent-white
and add either a heading tag or paragraph tag inside. Text (in this example) will be white instead of being black.
Modify the CSS so it's receiving the proper contract check in the Mixin.
Should act the same as the fully opaque background color classes.
Do not disclose security vulnerabilities here, please email us instead:
[email protected]
For the new mobile nav, it needs to have it's own unique styling to match the mockup.
In the off canvas menu, the existing dropdown styles will conflict with the new styles that will be added.
Provide additional Arizona Bootstrap styles that are responsible for the look of the off-canvas menu that override the current styling for drop down menus.
We can use these styles as a guide:
https://github.com/az-digital/az_quickstart/compare/offcanvas-demo#diff-5a2787674d768a086c71b3298d2d0087
Describe the bug
When compiling arizona-bootstrap locally (npm), all SCSS variables (116 total, currently) error out and ask for the !default
flag to be applied. This prevents local work from compiling. This was accidentally removed from .stylelintrc in #13; this PR will add it back in.
To Reproduce
Steps to reproduce the behavior:
cd
into arizona-bootstrap local reponpm run start
(or other method)_custom-variables.scss
fileExpected behavior
Compile without Expected !default flag for $variable-name
errors
As an admin of the Arizona Digital team, I'd like certain CI tasks to be automatically triggered/ran each time code is committed/merged in to the main branch of the AZ Bootstrap code base in order to make it easier for members of the Arizona Digital team to have access to the latest development version of the AZ Bootstrap documentation and assets.
…
Should add GitHub Actions configuration that does the following anytime code is committed/merged into the main branch:
The initial version of arizona-bootstrap
on GitHub is a close copy of the original Bitbucket repository, including various obsolete hard-coded Bitbucket references that do not make sense on GitHub.
The general-purpose Docker image used in the builds needs several additional steps that are slow and can be unreliable, particularly for npm install
. We should investigate whether derived temporary Docker containers work around this for both local development and GitHub Actions, or whether GitHub Actions can handle the CI aspect, with more work being needed for local development.
Functioning mobile navigation for Bootstrap & AZQS MVP.
Provide an off-canvas and on-canvas working example of a mobile navigation. This task will not include style improvements, but will focus on functionality (since design discussions are still in the works).
UA Bootstrap provided undocumented custom styles for "utility links" that were used by UA Zen to style items in the custom uaqs-utility-links
menu provided by UA Quickstart.
We need to style the utility links provided by AZ Quickstart the same way. Attendees of the 2020-05-08 AZ Digital meeting agreed that we should come up with a more re-usable way of implementing the utility link styles in Arizona Bootstrap than the UA Bootstrap implementation.
Options that were discussed in the 2020-05-08 AZ Digital meeting included:
nav-
class that can be used to apply the "Utility Links" styles to Nav components (and document it)navbar-
class that can be used apply the "Utility Links" styles to Navbar components (and document it)We also considered directly copying the styles as currently defined in UA Bootstrap.
We've decided to re-vamp our mobile navigation (see #82, #90). In order to support the navigation style/functionality we've decided on, we will need to add a small amount of custom JS to arizona bootstrap however
About a year ago we decided to simplify our existing package.json JS tasks for UADIGITAL-2058 which removed many of the tools/configuration needed to support custom JS in arizona-bootstrap so we'll need to look at adding that back.
Add back JS compiling/bundling tooling and configuration (copied from twbs/bootstrap) to arizona-bootstrap.
@camikazegreen commented on Wed May 20 2020
Current Quickstart 1.0 menus have white text and no underline on the dropdown menus.
We are trying to match parity of the existing menus.
Normal elements on dropdown menus should have white text and no underline.
Active elements on dropdown menus should be inverted with white backgrounds and Arizona Blue text.
@joshuasosa commented on Fri Jun 05 2020
On UA Quickstart, these dropdown menus are styled in UA Bootstrap. In keeping parity, should menu styles be in AZ Bootstrap or in AZ Quickstart? If Bootstrap, then should this issue be moved over to arizona-bootstrap?
@camikazegreen commented on Fri Jun 05 2020
@joshuasosa We are trying to make sure that all necessary styles or classes are available in Arizona Bootstrap so that it is easier for non-Drupal users to make similar menus.
I agree that the issue should be moved over to arizona-bootstrap.
The development dependencies in the Gemfile and package.json (with the corresponding lock files) in the upstream TWBS v4-dev branch have updated since the start of arizona-bootstrap, and should be re-synchronized. At least one of the changes is a security update, and there's also a small correction to one of the scripts in package.json. The changes also have implications for the dependencies specified in the _config.yml jekyll configuration.
Was previously named "Recreate Bitbucket Pipelines as GitHub Actions for Bootstrap"
Now that we've moved this repository to GitHub and replaced references to Bitbucket (#3, #4), we need to recreate all of the automation features we had added with Bitbucket Pipelines (see old bitbucket-pipelines.yml) using GitHub Actions.
Add readme for arizona bootstrap.
Here is the bootstrap 4 readme https://github.com/twbs/bootstrap/blob/master/README.md
We should highlight the differences between BS4 and AZBoostrap, possibly link to ua-bootstrap.
https://jira.arizona.edu/browse/UADIGITAL-2187
Finish going through audit items:https://docs.google.com/spreadsheets/d/1tgGDGHV6Wqts3b88Jp_CbmsUnmMg1O5s0W7zUgeXuLs/edit#gid=0
As of #67, we are now using the same basic aws s3 sync
command --cache-control
options that were used for UA Bootstrap when uploading Arizona Bootstrap assets to the Arizona Digital CDN. All files are currently getting configured with a max-age
value of 691200 seconds (8 days). We should probably be a little more strategic about what TTL values we use for different types of files (e.g. use longer TTLs for image files).
Come up with a more granular strategy for setting cache TTLs for files uploaded to the Arizona Digital CDN either by modifying the aws s3 sync
commands used in our GitHub Actions workflow(s) or by applying configuration rules to the AWS CloudFront distros / S3 buckets that will allow us to apply different cache lifetimes for different types of files.
In some cases Arizona Bootstrap builds use an out-of-date Docker image.
The SHA256 hash used to tag the Docker image that several different Arizona Bootstrap builds can potentially use is supposed to change when any of the image dependencies change, but changes to the scripts
subdirectory don't affect it.
Add the contents of the scripts
subdirectory to the SHA256 hash computation.
Rather than labelled numbers numbers referencing an issue (bug/..., feature/...) some of the review sites are being identified as ../merge.
The interpretation of the GITHUB_REF
environment variable in the action os incorrect.
See the comments on
https://stackoverflow.com/questions/58033366/how-to-get-current-branch-within-github-actions
Describe the bug
Existing scss creates unnecessary/misleading color class combinations.
e.g. Remove unnecessary combinations like this:
.bg-red p.text-color-red
closed as mistake/duplicate az-digital/az_quickstart#81
We need infrastructure to deploy review sites to for pull requests.
Describe the bug
Upstream https://github.com/twbs/bootstrap/tree/v4-dev now includes another set of dev dependency changes, in particular from the pull request twbs/bootstrap#30006 ( I like the phrase in the initial comment “In the past we considered such changes breaking ones.“). For example, there is a move to a new major release version of Jekyll.
To Reproduce
Steps to reproduce the behavior:
View the arizona-bootstrap repository on GitHub: there is now a security warning which does not appear on the upstream repository.
Errors appear in some local development environments.
Pull request reviewers have to wait several minutes before new or modified Arizona Bootstrap review sites are ready.
The improvements to speed up Docker support for Arizona Bootstrap builds in local dev environments slow down builds in Github Actions, because the ephemeral images don't persist there.
Start using the GitHub Package Registry to keep copies of the Docker images between builds, but only for Github Actions.
Collapse example on the documentation site is using h3
s, which is causing margin issues.
Margin inside collapse headers, which doesn't need to be there.
View the accordion example on the docs site, note the margin-top on the header due to the use of an h3
tag.
Remove the h3
from the documentation example.
No margin.
Describe the bug
This is the July 2020 repeat of Issue #24 — upstream https://github.com/twbs/bootstrap/tree/v4-dev now includes another set of dev dependency changes, including fixes for security issues.
To Reproduce
Steps to reproduce the behavior:
View the arizona-bootstrap repository on GitHub: there is now a security warning which does not appear on the upstream repository.
Errors appear in some local development environments.
As an admin of the Arizona Digital team, I'd like to be able to manually trigger a CI job (GitHub Action) that automatically performs whatever tasks are necessary to create a new AZ Bootstrap release in order to make it easier to release the latest AZ Bootstrap improvements.
…
Should add GitHub Actions configuration that provides a job/workflow which can be triggered manually by Arizona Digital team admins that does the following:
arizona-bootstrap-packagist
repo that can be triggered by an arizona-bootstrap
release/tag)Developers ad CI systems should be able to view and test the generated documentation web site.
Jekyll breaks in some Docker-based local development environments: the configuration traps the site within the container providing the build environment.
Steps to reproduce the behavior:
1.1. git clone [email protected]:az-digital/arizona-bootstrap.git
1.2. cd arizona-bootstrap
1.3. docker run --rm -t -i -p 9001:9001 -v $(pwd):/arizona-bootstrap azdigital/az-node-jre-jekyll:0.0.1 /bin/bash
2.1. cd arizona-bootstrap/
2.2. bundle install
2.3. npm install
2.4. npm run start
3.1. http://localhost:9001/arizona-bootstrap (fails to connect to a working site).
The current workaround is sed -i -e 's/"localhost"/0.0.0.0/' _config.yml
after step 1.2. above, but this makes a spurious uncommitted git change; it should be switched by an environment variable setting instead.
Nolink styles within the navbar component do not match the styles present for links within the navbar. Should probably add documentation regarding the recommendation that parent items in dropdowns should use nolink.
Also related: an additional ticket should be created for AZ Barrio (maybe?) to change the nolink from a span
to a button
to ensure it's still tab accessible.
See: https://www.drupal.org/project/drupal/issues/3153394
Font-weight is defined within reset
for all a
tags (700). Nolinks (span
s) so not receive that same font-weight. Buttons also do not receive this weight. The use of a button also incorporated a default (browser based) background color and border.
<nolink>
item to your navbarroute:<button>
item to your navbar<span>
and a <button>
as the parents of 2 different dropdowns..nav-link
class so that it applies to all items regardless of which HTML tag is used (a
, span
, button
)..nav-link
.button
on the .dropdown-toggle
in the navbar (since dropdowns open on click rather than hover).Link and nolink/button items should look the same in the navbar.
As a screen reader user, when I click a button that opens the menu, I want to be informed that the menu is open.
This will involve editing the aria-expanded when the menu opens.
We can look at how collapse.js (part of Bootstrap 4) modifies the markup when something is opened or closed.
Describe the bug
The npm commands in arizona-bootstrap fail or generate error messages.
To Reproduce
https://uarizona.slack.com/archives/CLWJM4JH2/p1581030340022400
Current state of local development for arizona-bootstrap: this is from testing on MacOS 10.13.6, Node.js v12.15.0, npm 6.13.4, ruby-2.7.0, OpenJDK 1.8.0_242, in a fresh clone of [email protected]:az-digital/arizona-bootstrap.git
npm install worked with minor warnings from ld.
bundle install worked, but started using Bundler 2.1.2, which modified Gemfile.lock (none of the dependencies changed, but it overwrote 1.17.3 with its own version in the “BUNDLED WITH” section).
npm run dist worked as expected, but did show the message “WARNING: Skipping remote @import of “https://cdn.uadigital.arizona.edu/lib/ua-brand-fonts/1.0.0/milo.min.css” as resource is not allowed.”
npm run docs worked, though there were voluminous deprecation warnings from Ruby in the Jekyll build step.
npm run test failed “ERROR: Task not found: “js-test”"
npm run docs-serve worked (with plenty of deprecation warnings from Ruby), but then there were some runtime errors on the terminal (and browser Javascript console when viewing the local site): “ERROR /arizona-bootstrap/docs/0.0/assets/js/vendor/bs-custom-file-input.min.js.map’ not found.” and “ERROR
/arizona-bootstrap/docs/0.0/dist/js/bootstrap.bundle.js.map’ not found.”
Just specifying older versions should fix the Ruby deprecation warnings and Bundler version annoyance: that’s not something to do directly in arizona-bootstrap. But the failed npm run test and missing file messages might need a further round of issues and pull requests.
Expected behavior
Using npm run commands in arizona-bootstrap should work in the same way as the upstream (twbs) commands.
As a member of the Arizona Digital team, I'd like to have a review site automatically generated and deployed when I submit PR in order to make it easier for members to review my proposed changes.
…
Should add GitHub Actions configuration that does the following for submitted Pull Requests:
There are some "hidden" linting errors displaying in the command prompt console when using npm
to build a local copy of Arizona Bootstrap. The error doesn't display all the time, which is why it's "hidden". Just some minor syntax errors that don't break anything, but still throw errors.
"file:/arizona-bootstrap/_site/docs/0.0/deprecated/index.html":791.3-791.154: error: Bad value "350px" for attribute "width" on element "img": Expected a digit but saw "p" instead.
"file:/arizona-bootstrap/_site/docs/0.0/deprecated/index.html":793.3-793.155: error: Bad value "350px" for attribute "width" on element "img": Expected a digit but saw "p" instead.
"file:/arizona-bootstrap/_site/docs/0.0/components/photo-gallery/index.html":487.3-487.145: error: The "aria-labelledby" attribute must point to an element in the same document.
"file:/arizona-bootstrap/_site/docs/0.0/backwards-compatibility/index.html":791.3-791.154: error: Bad value "350px" for attribute "width" on element "img": Expected a digit but saw "p" instead.
"file:/arizona-bootstrap/_site/docs/0.0/backwards-compatibility/index.html":793.3-793.155: error: Bad value "350px" for attribute "width" on element "img": Expected a digit but saw "p" instead.
npm install
bundle install
npm run dist
npm run docs-review
npm run docs-lint
Remove the px
unit from the markup.
Markup should behave exactly the same, but no errors should be thrown by lint.
As an Arizona Digital developer, I'd like for automatic linting checks to be run against my code changes when I submit a pull request to ensure coding standards are adhered to.
…
Is your feature request related to a problem? Please describe.
As a result of the decision made about replacing the institutional font from Milo to Proxima Nova, arizona-bootstrap should update which font it uses.
Describe the solution you'd like
I would like to easily use Proxima Nova where I used to use Milo in the same way that I use Milo now.
Describe alternatives you've considered
Other alternatives include.
Removing reference for Milo and add instructions on how to obtain and reference your own copy of Proxima Nova for each individual project you work on.
Build Proxima Nova into whatever calls arizona bootstrap.
Provide a shared link that people who work at the University of Arizona can use.
Additional context
We will need to review Typekit font licensing and usage with our needs in mind.
Broken links in README.md
All links in README.md are broken
Steps to reproduce the behavior:
Update links. (link to CONTRIBUTING.md should be case sensitive. Other files have been moved)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.