Skip to content

Commit

Permalink
applu wcag rules for self dashboard page
Browse files Browse the repository at this point in the history
  • Loading branch information
skublik committed Jan 15, 2024
1 parent 8c9264b commit 10abccb
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
</div>
<div class="row">
<wicket:container wicket:id="objectCollectionViewWidgetsPanel">
<div wicket:id="objectCollectionViewWidget"/>
<div wicket:id="objectCollectionViewWidget" tabindex="0" role="section"/>
</wicket:container>
</div>
</form>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@

<div class="info-box-content justify-content-start">
<span class="info-box-number" wicket:id="labelId"/>
<span class="sr-only">.</span>
<span class="info-box-text" wicket:id="descriptionId"/>
<span class="sr-only">.</span>
<span class="info-box-text" wicket:id="statisticData"/>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<!DOCTYPE html>
<html xmlns:wicket="http://wicket.apache.org">
<wicket:panel>
<div class="card-header" wicket:id="header"/>
<div class="card-header" wicket:id="header" role="heading"/>
<div wicket:id="tableContainer" class="card-body p-0 table-responsive">
<table class="table table-hover" wicket:id="table"/>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,10 @@ protected void refreshTable(AjaxRequestTarget target) {
headersTop.setOutputMarkupId(true);
table.addTopToolbar(headersTop);

add(createHeader(ID_HEADER));
Component header = createHeader(ID_HEADER);
header.setOutputMarkupId(true);
add(header);
add(AttributeAppender.append("aria-labelledby", header.getMarkupId()));
WebMarkupContainer footer = createFooter(ID_FOOTER);
footer.add(new VisibleBehaviour(() -> !hideFooterIfSinglePage() || provider.size() > pageSize));
add(footer);
Expand Down

0 comments on commit 10abccb

Please sign in to comment.