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

v1.7.0 -> staging #1481

Merged
merged 35 commits into from Feb 10, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
39de9a6
Change color of school page sidebar buttons to white.
stevenbuccini Jan 17, 2016
379ce1a
Added rounded border. Increased padding on medium screen sizes
stevenbuccini Jan 17, 2016
24d75d8
Update contact
abisker Feb 2, 2016
7b49c10
replace accordion <a> with <button> on search form
Feb 3, 2016
04ef2eb
set tabindex="0" on all accordion triggers
Feb 3, 2016
c39993a
rename accordion toggle variables for clarity
Feb 3, 2016
534dfac
undo <button> styles in <aria-accordion> per #54
Feb 3, 2016
df72835
replace <a> with <button> in accordions per #54
Feb 3, 2016
28eba6b
set jshint node: true
Feb 3, 2016
5d6162f
replace <a> with <button> in accordions per #54
Feb 3, 2016
8c107a1
update CSS selectors for accordion buttons
Feb 3, 2016
96588b7
fix last "button" selector
Feb 3, 2016
c57b9f8
fix accordion button selectors in searchData tests
Feb 3, 2016
f1150f9
Merge pull request #1431 from stevenbuccini/increase_contrast
shawnbot Feb 5, 2016
ec6eca0
Merge pull request #1463 from 18F/abisker-patch-1
ultrasaurus Feb 8, 2016
22a4ca0
reduce CSS selector specificity
Feb 9, 2016
d0174bb
Merge pull request #1465 from 18F/accordion-a11y
ultrasaurus Feb 9, 2016
9a0a588
short-circuit pa11y errors
Feb 8, 2016
a1fe569
add /data/ to a11y tests
Feb 8, 2016
ec64924
rename test/ci.sh -> test/server.sh
Feb 8, 2016
7fd9051
call ./test/server.sh, then browser + a11y tests
Feb 8, 2016
a3216e0
test-ci runs wdio directly now
Feb 8, 2016
4a1d158
try explicitly backgrounding the test server
Feb 8, 2016
7b34c0b
fix whitespace
Feb 8, 2016
971dee2
just use jekyll, don\'t block here
Feb 9, 2016
1ed948c
move waiting for server to circle.yml
Feb 9, 2016
856f9ae
nix errant slash
Feb 9, 2016
3b4e29a
temporarily disable /data/ a11y tests
Feb 9, 2016
f4e7cdf
fix loading wait timeout (use the default)
Feb 9, 2016
007735d
move comment to own line
Feb 9, 2016
d23485e
nix http-server dependency
Feb 9, 2016
7a503aa
add meta description per #1291
Feb 9, 2016
e65bede
Merge pull request #1477 from 18F/ci-false-positive
ultrasaurus Feb 9, 2016
581666c
Merge pull request #1480 from 18F/meta-updates
shawnbot Feb 9, 2016
9538611
bump to v1.7.0
Feb 10, 2016
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions .about.yml
Expand Up @@ -22,8 +22,8 @@ stack:
- Rails
- elasticsearch
contact:
- url: mailto:holly.allen@gsa.gov
text: Holly Allen
- url: mailto:alexandra.bisker@gsa.gov
text: Alex Bisker
team:
- github: ultrasaurus
- github: shawnbot
Expand Down
2 changes: 1 addition & 1 deletion _config.yml
Expand Up @@ -13,7 +13,7 @@ baseurl:
url: https://collegescorecard.ed.gov

# app version number
version: v1.6.0
version: v1.7.0

# Build settings
markdown: kramdown
Expand Down
1 change: 1 addition & 0 deletions _includes/head.html
Expand Up @@ -48,6 +48,7 @@
<meta name="twitter:image" content="{{ canonical_base_url }}/img/hero-small.jpg">

<!-- description -->
<meta name="description" content="{{ site.description }}">
<meta property="og:description" content="{{ site.description }}">
<meta name="twitter:description" content="{{ site.description }}">

Expand Down
36 changes: 18 additions & 18 deletions _includes/search-form.html
Expand Up @@ -6,9 +6,9 @@
<aria-accordion id="school-degree" class="container">

<h1 class="search_category">
<a aria-expanded="false" aria-controls="major-content">
<button aria-expanded="false" aria-controls="major-content">
Programs/Degrees
</a>
</button>
</h1>
<div id="major-content" aria-hidden="true" class="accordion-div">

Expand All @@ -31,7 +31,7 @@ <h1 class="search_category">

</div>

<input type="submit" value="Submit" class="sr-only">
<input type="submit" value="Submit" class="sr-only" tabindex="-1">

</aria-accordion>

Expand All @@ -43,9 +43,9 @@ <h1 class="search_category">
<aria-accordion id="school-location" class="container">

<h1 class="search_category">
<a aria-expanded="false" aria-controls="location-content">
<button aria-expanded="false" aria-controls="location-content">
Location
</a>
</button>
</h1>

<div id="location-content" aria-hidden="true" class="accordion-div">
Expand Down Expand Up @@ -125,7 +125,7 @@ <h1 class="search_category">

</div>

<input type="submit" value="Submit" class="sr-only">
<input type="submit" value="Submit" class="sr-only" tabindex="-1">

</aria-accordion>

Expand All @@ -137,9 +137,9 @@ <h1 class="search_category">
<aria-accordion id="school-size" class="container">

<h1 class="search_category">
<a aria-expanded="false" aria-controls="size-content">
<button aria-expanded="false" aria-controls="size-content">
Size
</a>
</button>
</h1>

<div id="size-content" aria-hidden="true">
Expand Down Expand Up @@ -173,7 +173,7 @@ <h1>Undergraduate Student Body</h1>

</div>

<input type="submit" value="Submit" class="sr-only">
<input type="submit" value="Submit" class="sr-only" tabindex="-1">

</aria-accordion>

Expand All @@ -185,17 +185,17 @@ <h1>Undergraduate Student Body</h1>
<aria-accordion id="school-name" class="container">

<h1 class="search_category">
<a aria-expanded="false" aria-controls="name-content">
<button aria-expanded="false" aria-controls="name-content">
Name
</a>
</button>
</h1>

<div id="name-content" aria-hidden="false" class="accordion-div">
<label for="name-school">School name</label>
<input id="name-school" name="name" type="text" placeholder="e.g., USA University" {{ common_input_attributes }}>
</div>

<input type="submit" value="Submit" class="sr-only">
<input type="submit" value="Submit" class="sr-only" tabindex="-1">

</aria-accordion>

Expand All @@ -206,9 +206,9 @@ <h1 class="search_category">

<aria-accordion class="container">
<h1 class="search_category">
<a aria-expanded="false" aria-controls="type-content">
<button aria-expanded="false" aria-controls="type-content">
Advanced Search
</a>
</button>
</h1>

<div id="type-content" aria-hidden="false">
Expand Down Expand Up @@ -261,7 +261,7 @@ <h1>Type of school</h1>

</div>

<input type="submit" value="Submit" class="sr-only">
<input type="submit" value="Submit" class="sr-only" tabindex="-1">

</aria-accordion>

Expand All @@ -276,16 +276,16 @@ <h1>Type of school</h1>
<legend>Advanced Search</legend>

<div class="advanced_search-title">
<a aria-expanded="false" aria-controls="advanced-content" class="button link-more advanced_search-control">
<button aria-expanded="false" aria-controls="advanced-content" class="button link-more advanced_search-control">
Advanced Search <i class="fa fa-plus"></i>
</a>
</button>
</div>

<div id="advanced-content" class="advanced-content" aria-hidden="false">

</div>

<input type="submit" value="Submit" class="sr-only">
<input type="submit" value="Submit" class="sr-only" tabindex="-1">

</aria-accordion>

Expand Down
5 changes: 3 additions & 2 deletions _sass/base/blocks/_school.scss
Expand Up @@ -26,8 +26,11 @@

.school-right {
margin-top: $base-padding;
padding-top: $base-padding;
padding-left: $base-padding;
padding-right: $base-padding;
background-color: $white;
border-radius: 0.4em;

h2 {
padding-bottom: $base-padding;
Expand Down Expand Up @@ -60,8 +63,6 @@
@include respond-to(medium-up) {
@include span-columns(3);
@include omega();
padding-left: 0;
padding-right: 0;
margin-top: $base-padding;

h2 {
Expand Down
29 changes: 20 additions & 9 deletions _sass/base/components/_aria-accordion.scss
@@ -1,21 +1,32 @@
aria-accordion {
$button-size: 34px;
$button-margin: 9px;
$toggle-size: 34px;
$toggle-margin: 9px;

@include transition(height 1s linear);

display: block;
min-height: $button-size + ($button-margin * 2);
min-height: $toggle-size + ($toggle-margin * 2);
padding-bottom: $base-padding-lite;

@include respond-to(tiny-up) {
min-height: $button-size + ($button-margin * 3);
min-height: $toggle-size + ($toggle-margin * 3);
}

[aria-controls] {
// reset all of the button styles...
background: transparent;
border-radius: 0;
display: block;
cursor: pointer;
font: inherit;
height: auto;
letter-spacing: 0;
margin: 0;
padding: 0;
position: relative;
text-align: left;
text-transform: none;
vertical-align: baseline;
width: 100%;
}

[aria-controls]:after {
Expand All @@ -24,16 +35,16 @@ aria-accordion {
border-radius: 500px;
color: #999;
display: inline-block;
font-size: $button-size;
font-size: $toggle-size;
font-weight: normal;
height: $button-size;
height: $toggle-size;
line-height: 1.075;
padding-left: 0.02em;
position: absolute;
text-align: center;
top: $button-margin;
top: $toggle-margin;
right: 0; // XXX
width: $button-size;
width: $toggle-size;
}

[aria-controls]:after {
Expand Down
17 changes: 15 additions & 2 deletions circle.yml
Expand Up @@ -28,7 +28,20 @@ test:
# <https://github.com/webdriverio/webdriverio/issues/926>
- ln -s /tmp

# build the site and start the server (this exits when the server is
# available at localhost:4000)
- ./test/server.sh:
background: true

# wait for the http server to start
- wget --retry-connrefused --waitretry=1 -T 5 -t 30 -qO- http://localhost:4000 > /dev/null

# run the browser tests
- ./test/ci.sh
- npm run test-ci

# run the accessibility tests
- npm run test-a11y

post:
- killall --wait sc # wait for Sauce Connect to close the tunnel
# wait for Sauce Connect to close the tunnel
- killall --wait sc
2 changes: 1 addition & 1 deletion js/picc.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion js/picc.js.map

Large diffs are not rendered by default.

10 changes: 8 additions & 2 deletions js/src/components/aria-accordion.js
Expand Up @@ -10,10 +10,16 @@
{
attachedCallback: {value: function() {
var trigger = this.__trigger = getTrigger(this);
if (!trigger) return;
if (!trigger) {
return;
}

var content = this.__content = getContent(this, trigger);
if (!content) return;
if (!content) {
return;
}

trigger.setAttribute('tabindex', 0);

// set role="button" on the trigger element if it's not a <button>
if (trigger.nodeName !== 'BUTTON' && !trigger.hasAttribute('role')) {
Expand Down
3 changes: 1 addition & 2 deletions package.json
Expand Up @@ -18,7 +18,7 @@
"test": "wdio test/wdio.conf.js",
"test-quick": "wdio test/wdio.quick.js",
"test-sauce": "wdio test/wdio.sauce.js",
"test-ci": "./test/ci.sh"
"test-ci": "wdio test/wdio.ci.js"
},
"dependencies": {
"aight": "^2.1.1",
Expand All @@ -32,7 +32,6 @@
"devDependencies": {
"browserify": "^12.0.1",
"extend": "^3.0.0",
"http-server": "^0.8.5",
"jshint": "^2.8.0",
"minifyify": "^7.1.0",
"mocha": "*",
Expand Down
28 changes: 14 additions & 14 deletions school/index.html
Expand Up @@ -159,9 +159,9 @@ <h2 class="figure-heading constrain_width" aria-describedby="tip-avg-salary">
<div>

<h1 class="search_category">
<a aria-expanded="false" aria-controls="costs-content">
<button aria-expanded="false" aria-controls="costs-content">
Costs
</a>
</button>
</h1>

<div id="costs-content" aria-hidden="true">
Expand Down Expand Up @@ -251,9 +251,9 @@ <h2>By Family Income</h2>
<aria-accordion id="finaid" class="school-two_col">
<div>
<h1 class="search_category">
<a aria-expanded="false" aria-controls="finaid-content">
<button aria-expanded="false" aria-controls="finaid-content">
Financial Aid &amp; Debt
</a>
</button>
</h1>

<div id="finaid-content" aria-hidden="true">
Expand Down Expand Up @@ -359,9 +359,9 @@ <h2>Get Help Paying for College</h2>
<aria-accordion id="graduation" class="school-two_col">
<div>
<h1 class="search_category">
<a aria-expanded="false" aria-controls="graduation-content">
<button aria-expanded="false" aria-controls="graduation-content">
Graduation &amp; Retention
</a>
</button>
</h1>

<div id="graduation-content" aria-hidden="true">
Expand Down Expand Up @@ -440,9 +440,9 @@ <h2 class="figure-heading" aria-describedby="tip-retention-rate">
<aria-accordion id="earnings" class="school-two_col">
<div>
<h1 class="search_category">
<a aria-expanded="false" aria-controls="earnings-content">
<button aria-expanded="false" aria-controls="earnings-content">
Earnings After School
</a>
</button>
</h1>

<div id="earnings-content" aria-hidden="true">
Expand Down Expand Up @@ -501,9 +501,9 @@ <h2 class="figure-heading" aria-describedby="tip-avg-salary">
<aria-accordion id="demographics" class="school-two_col">
<div>
<h1 class="search_category">
<a aria-expanded="false" aria-controls="student-content">
<button aria-expanded="false" aria-controls="student-content">
Student Body
</a>
</button>
</h1>

<div id="student-content" aria-hidden="true">
Expand Down Expand Up @@ -593,9 +593,9 @@ <h2 aria-describedby="tip-socio-eco">
<aria-accordion id="selectivity" class="school-two_col">
<div>
<h1 class="search_category">
<a aria-expanded="false" aria-controls="selectivity-content">
<button aria-expanded="false" aria-controls="selectivity-content">
SAT/ACT Scores
</a>
</button>
</h1>

<div id="selectivity-content" aria-hidden="true">
Expand Down Expand Up @@ -660,9 +660,9 @@ <h3 class="h2">ACT</h3>
<aria-accordion id="academics" class="school-two_col">
<div>
<h1 class="search_category">
<a aria-expanded="false" aria-controls="academics-content">
<button aria-expanded="false" aria-controls="academics-content">
Academic Programs
</a>
</button>
</h1>

<div id="academics-content" aria-hidden="true">
Expand Down