Skip to content

Commit

Permalink
120594: btn-transparent class
Browse files Browse the repository at this point in the history
  • Loading branch information
Wout-atmire committed Nov 29, 2024
1 parent 77d2178 commit 6e2eddf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<cdk-tree-node *cdkTreeNodeDef="let node; when: hasChild" cdkTreeNodePadding
class="example-tree-node expandable-node">
<div class="btn-group">
<button *ngIf="hasChild(null, node) | async" type="button" class="btn btn-default" cdkTreeNodeToggle
<button *ngIf="hasChild(null, node) | async" type="button" class="btn btn-default btn-transparent" cdkTreeNodeToggle
[attr.aria-label]="(node.isExpanded ? 'communityList.collapse' : 'communityList.expand') | translate:{ name: dsoNameService.getName(node.payload) }"
(click)="toggleExpanded(node)"
data-test="expand-button">
Expand Down
3 changes: 1 addition & 2 deletions src/styles/_bootstrap_variables_mapping.scss
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,7 @@
--bs-table-striped-bg: #{$light};
}

cdk-tree-node .btn,
#mobile-navbar-toggler > .btn
.btn-transparent
{
--bs-btn-box-shadow: none;
--bs-btn-focus-box-shadow: none;
Expand Down
2 changes: 1 addition & 1 deletion src/themes/dspace/app/header/header.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
</div>

<div id="mobile-navbar-toggler" class="d-block d-lg-none ms-3" *ngIf="(isMobile$ | async)">
<button id="navbar-toggler" class="btn" type="button" (click)="toggleNavbar()"
<button id="navbar-toggler" class="btn btn-transparent" type="button" (click)="toggleNavbar()"
[attr.aria-label]="'nav.toggle' | translate" aria-controls="collapsible-mobile-navbar" [attr.aria-expanded]="(isNavBarCollapsed$ | async) !== true">
<span class="fas fa-bars fa-fw fa-xl toggler-icon" aria-hidden="true"></span>
</button>
Expand Down

0 comments on commit 6e2eddf

Please sign in to comment.