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

Changed color of the link text in order to match accessibility standards #27

Open
wants to merge 1 commit 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
9 changes: 3 additions & 6 deletions mayan/apps/appearance/templates/appearance/app/head.html
Original file line number Diff line number Diff line change
@@ -1,20 +1,17 @@
<style>
<!--
Nullify the 5px padding to the right
-->
.appearance-list-column-sort-icon {
margin-right: -5px;
color: #07372e;
}

<!--
Make column text behave the same way as column links.
-->
.appearance-list-column-label {
padding: 0px;
color: #07372e;
}

.appearance-list-columns-help-text {
margin-left: 3px;
color: #07372e;
}

.fashadow svg {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
{% load common_tags %}
{% load navigation_tags %}
{% load smart_settings_tags %}
<style>
a {color: #07372e}
</style>

<div class="row">
<div class="col-xs-12">
Expand Down Expand Up @@ -33,15 +36,15 @@
<th>
<span style="white-space: nowrap">
{% if source_column.is_sortable %}
<a href="{% navigation_get_sort_field_querystring column=source_column %}">{{ source_column.label }}</a>
<a href="{% navigation_get_sort_field_querystring column=source_column %}" style = "color: #07372e">{{ source_column.label }}</a>
{% navigation_source_column_get_sort_icon column=source_column as icon_sort %}
{% if icon_sort %}
<span class="appearance-list-column-sort-icon">
{{ icon_sort.render }}
</span>
{% endif %}
{% else %}
<span class="appearance-list-column-label">{{ source_column.label }}</span>
<span class="appearance-list-column-label" style = "color: #07372e">{{ source_column.label }}</span>
{% endif %}
{% include 'appearance/partials/column_help_text.html' %}
</span>
Expand All @@ -55,15 +58,15 @@
<th>
<span style="white-space: nowrap">
{% if source_column.is_sortable %}
<a href="{% navigation_get_sort_field_querystring column=source_column %}">{{ source_column.label }}</a>
<a href="{% navigation_get_sort_field_querystring column=source_column %}" style = "color: #07372e">{{ source_column.label }}</a>
{% navigation_source_column_get_sort_icon column=source_column as icon_sort %}
{% if icon_sort %}
<span class="appearance-list-column-sort-icon">
{{ icon_sort.render }}
</span>
{% endif %}
{% else %}
<span class="appearance-list-column-label">{{ source_column.label }}</span>
<span class="appearance-list-column-label" style = "color: #07372e">{{ source_column.label }}</span>
{% endif %}
{% include 'appearance/partials/column_help_text.html' %}
</span>
Expand All @@ -81,23 +84,25 @@
</tr>
{% endif %}
</thead>
<tbody>
<tbody style = "color: #07372e">
{% for object in object_list %}
<tr>
<tr style = "color: #07372e">
{% if links_multi_menus_results %}
<td>
<input class="form-multi-object-action-checkbox check-all-slave checkbox" name="pk_{{ object.pk }}" type="checkbox" value="" />
<input class="form-multi-object-action-checkbox check-all-slave checkbox" name="pk_{{ object.pk }}" type="checkbox" value="" style = "color: #07372e" />
</td>
{% endif %}

{% if not hide_object %}
<td>{% if not hide_link %}<a href="{{ object.get_absolute_url }}">{{ object }}</a>{% else %}{{ object }}{% endif %}</td>
<td>{% if not hide_link %}<a href="{{ object.get_absolute_url }}" style = "color: #07372e;">{{ object }}</a>{% else %}{{ object }}{% endif %}</td>
{% else %}
{% navigation_get_source_columns source=object only_identifier=True as source_column %}
{% if source_column %}
{% navigation_source_column_resolve column=source_column as column_value %}
<td>
{{ column_value }}
<td style = "color: #07372e">
<div style = "color: #07372e">
{{ column_value }}</div>

</td>
{% endif %}
{% endif %}
Expand All @@ -106,7 +111,7 @@
{% navigation_get_source_columns source=object exclude_identifier=True as source_columns %}
{% for column in source_columns %}
<td>
<div class="{{ table_cell_container_classes }} {{ column.html_extra_classes }}">
<div class="{{ table_cell_container_classes }} {{ column.html_extra_classes }}" style = "color: #07372e">
{% navigation_source_column_resolve column=column as column_value %}{{ column_value }}
{# Use explicit 'as column_value ' to force date rendering #}
</div>
Expand Down