Skip to content

Commit

Permalink
fixing nested rules
Browse files Browse the repository at this point in the history
  • Loading branch information
FelipeSimoes committed Jan 17, 2024
1 parent 309c281 commit 6c19b04
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion blocks/breadcrumbs/breadcrumbs.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ raqn-breadcrumbs {
gap: 10px;
align-items: center;
padding: 10px 0;
background-color: var(--scope-background, transparent);
background: var(--scope-background, transparent);
}

raqn-breadcrumbs ul {
Expand Down
7 changes: 6 additions & 1 deletion blocks/breadcrumbs/breadcrumbs.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
import ComponentBase from '../../scripts/component-base.js';

export default class BreadCrumbs extends ComponentBase {
constructor() {
super();
this.classList.add('full-width');
this.classList.add('breadcrumbs');
}

capitalize(string) {
return string
.split('-')
Expand All @@ -10,7 +16,6 @@ export default class BreadCrumbs extends ComponentBase {

ready() {
this.path = window.location.pathname.split('/');
this.classList.add('breadcrumbs');
this.innerHTML = `
<ul>
${this.path
Expand Down

0 comments on commit 6c19b04

Please sign in to comment.