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

Accessibility fixes. #1

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added images/availability.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 6 additions & 2 deletions style/developer.css
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@
.field-ting-refs .subjects h4{float: left; margin: 0 10px 0 0; font-size: 10px; color:#bbb;}
.field-ting-refs .subjects li{display:inline; font-size: 10px; color:#bbb;}
.field-ting-refs .subjects ul { clear:none; } /* overskriv ".node .content ul" i stylec.css */
ul.field-ting-refs { margin:0 ! important ; padding: 0 ! important; }
ul.field-ting-refs li { clear:both; margin:0 0 20px 0; padding:10px 0 10px 10px; list-style-type: none ! important; }
.field-ting-refs ul { margin:0 ! important ; padding: 0 ! important; }
.field-ting-refs ul li { clear:both; margin:0 0 20px 0; padding:10px 0 10px 10px; list-style-type: none ! important; }
.field-ting-refs img { margin: 0 ! important }
.field-ting-refs { font-family:Arial,sans-serif; } /* dubliker regel i ui.all.css, override typography.css */

Expand Down Expand Up @@ -129,6 +129,10 @@ iframe.pc-booking { width: 100%; height: 100%; min-height: 600px;}
#ting-search-result .ting-search-collection-types .unavailable {
background-color: #f85f26;
color:#fff;
background-image: url(../images/availability.png);
background-repeat: no-repeat;
background-position: 3px -17px;
padding-left: 17px;
}


Expand Down
14 changes: 14 additions & 0 deletions style/dynamo.css
Original file line number Diff line number Diff line change
Expand Up @@ -246,3 +246,17 @@ Crap from modules

/*i feel dirty*/
.ui-dialog-content {width:250px !important;}

/** Skip navigation link **/
.skip-navigation {display: none;}

/** Remove default firefox outline **/
button::-moz-focus-inner,
input::-moz-focus-inner {
border: 0;
outline: 0;
}

:focus {
outline: black dotted thin;
}
9 changes: 7 additions & 2 deletions style/search.css
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,15 @@
#ting-search-result .types li,.types li{clear:none; display:inline; float:left; margin:0 10px 0 0; padding:0; background:none;}
#ting-search-result .types li, .types li{font-size: 10px; padding:1px 3px; color: #fff; margin: 1px}
#ting-search-result .types li,.types li{background-color:#eee; color:#aaa;}
#ting-search-result .types li.available,.types li.available{background-color:#71bf44; color:#fff;}
#ting-search-result .types li.available,.types li.available{background-color:#71bf44; color:#fff; background-image: url(../images/availability.png); background-position: 3px 3px; background-repeat: no-repeat; padding-left: 17px;}
#ting-search-result .availability {display: none;}
#ting-search-result .types li.out,.types li.out{background-color: #f85f26; color:#fff;}
#ting-search-result .types li.reserved,ul.types li.reserved{ background-color: #560036; /*#bc0028*/ color:#fff;}
#ting-search-result .types li.reserved,ul.types li.reserved{ background-color: #560036; /*#bc0028*/ color:#fff; background-image: url(../images/icons/reserved.png); background-repeat: no-repeat; padding-left: 17px;}
#ting-search-result .ting-details {color:#bbb;}

#ting-search-result .subjects li{clear:none; display:inline; float:left; margin:0 10px 0 0; padding:0; background:none; }
#ting-search-result .subjects h4{float: left; margin: 0 10px 0 0; font-size: 10px; color:#bbb;}
#ting-search-result .subjects li{display:inline; font-size: 10px; color:#bbb;}

#content-result .taxonomy ul li{float:left; background:none; padding:0 10px 0 0;}
#content-result .taxonomy ul {display:block;}
Expand Down
8 changes: 7 additions & 1 deletion template.php
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,13 @@ function dynamo_panels_pane($content, $pane, $display) {
$classstr = ' ' . $content->css_class;
}

$output = "<div class=\"panel-pane pane-$pane->subtype $classstr \"$idstr>\n";
$lang = '';
if ($content->type == 'node_content' && $content->module == 'node' && is_numeric($content->delta)) {
$node = node_load($content->delta);
$lang = 'lang="' . $node->language . '"';
}

$output = "<div class=\"panel-pane pane-$pane->subtype $classstr \"$idstr $lang>\n";

if (!empty($content->title)) {

Expand Down
20 changes: 8 additions & 12 deletions templates/content-field.tpl.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,22 +46,16 @@
<?php endif; ?>

*/
if ($field_type == 'ting_reference') {
$wrapper_tag = 'ul';
}
else {
$wrapper_tag = 'div';
}
?>

<?php if (!$field_empty) : ?>
<<?php print $wrapper_tag ?> class="<?php print $field_name_css ?>">

<div class="<?php print $field_name_css ?>">
<?php if ($label_display == 'above') : ?>
<span><?php print t($label) ?>:&nbsp;</span>
<?php endif;?>


<?php if ($field_type == 'ting_reference'): ?>
<ul class="content">
<?php endif ?>
<?php $count = 1;
foreach ($items as $delta => $item) :
if (!$item['empty']) : ?>
Expand All @@ -74,7 +68,9 @@
<?php $count++;
endif;
endforeach;?>
<?php if ($field_type == 'ting_reference'): ?>
</ul>
<?php endif ?>


</<?php print $wrapper_tag ?>>
</div>
<?php endif; ?>
2 changes: 2 additions & 0 deletions templates/page.tpl.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@
<div id="container" class="clearfix">

<div id="page" class="minheight">
<!-- Skip navigation link - used by screenreaders -->
<a class="skip-navigation" href="#content"><?php print t('Skip navigation');?></a>
<div id="page-inner" class="clearfix">


Expand Down
4 changes: 4 additions & 0 deletions templates/views-view-fields--event-list--panel-pane.tpl.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
* Template to render a row from the event_list view.
*/

// Insert title as alt text. Would like to do this in a preprocess function,
// but this doesn't seem possible with current version of Views.
$fields['field_list_image_fid']->content = str_replace('alt=""', 'alt="' . check_plain($fields['title']->raw) . '"', $fields['field_list_image_fid']->content);

// Prepare a couple of variables.
$start = date_make_date($fields['field_datetime_value']->raw);
$price = ($fields['field_entry_price_value']->raw < 1) ? t('Free') : intval($fields['field_entry_price_value']->raw) . ' kr.';
Expand Down
8 changes: 8 additions & 0 deletions templates/views-view-fields--library-list--page.tpl.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
<?php

// Insert title as alt text. Would like to do this in a preprocess function,
// but this doesn't seem possible with current version of Views.
$fields['field_list_image_fid']->content = str_replace('alt=""', 'alt="' . check_plain($fields['title']->raw) . '"', $fields['field_list_image_fid']->content);

?>

<!--views-view-fields--library-list--page.tpl.php-->
<div class="clearfix">
<div class="picture">
Expand Down