diff --git a/src/components/card/_card.scss b/src/components/card/_card.scss index 627cfd5e26..c489c98ae9 100644 --- a/src/components/card/_card.scss +++ b/src/components/card/_card.scss @@ -11,7 +11,7 @@ & > .ons-card__title { margin-bottom: 0; } - } + } &__link:hover { text-decoration-thickness: 3px; diff --git a/src/components/input/_macro.njk b/src/components/input/_macro.njk index 40b1472287..4c6d097ee4 100644 --- a/src/components/input/_macro.njk +++ b/src/components/input/_macro.njk @@ -76,7 +76,7 @@ {% set prefixClass = " ons-input-type--prefix" %} {% endif %} - + {{ input | safe }} diff --git a/src/components/input/input.dom.js b/src/components/input/input.dom.js index 54e9c37e05..300b6f2bec 100644 --- a/src/components/input/input.dom.js +++ b/src/components/input/input.dom.js @@ -1,11 +1,11 @@ import domready from '../../js/domready'; domready(async () => { - const abbrInputs = [...document.querySelectorAll('.ons-js-input-abbr')]; + const abbrInputs = [...document.querySelectorAll('.ons-js-input-container-abbr')]; if (abbrInputs.length) { - const abbr = (await import('./input')).default; + const abbrInput = (await import('./input')).default; - abbrInputs.forEach((element) => new abbr(element)); + abbrInputs.forEach((element) => new abbrInput(element)); } }); diff --git a/src/components/input/input.js b/src/components/input/input.js index 2968a8b146..208b481919 100644 --- a/src/components/input/input.js +++ b/src/components/input/input.js @@ -1,14 +1,14 @@ -export default class Abbr { +export default class AbbrInput { constructor(context) { - this.abbr = context; + this.abbrInput = context; this.bindEventListeners(); } bindEventListeners() { - this.abbr.addEventListener('click', this.handleClick.bind(this)); + this.abbrInput.querySelector('.ons-js-input-abbr').addEventListener('click', this.handleClick.bind(this)); } handleClick() { - this.abbr.parentNode.querySelector('.ons-input').focus(); + this.abbrInput.querySelector('.ons-input').focus(); } } diff --git a/src/scss/objects/_page.scss b/src/scss/objects/_page.scss index e2c6f2ae2c..896aa42baf 100644 --- a/src/scss/objects/_page.scss +++ b/src/scss/objects/_page.scss @@ -21,13 +21,11 @@ @include mq(xxs, m) { margin-top: 1.5rem; } - } // Adjust margin-top when .ons-page__main contains .ons-panel--error */ -.ons-breadcrumbs ~ .ons-grid .ons-grid__col .ons-page__main:has(.ons-panel--error){ - margin-top: 1rem; - +.ons-breadcrumbs ~ .ons-grid .ons-grid__col .ons-page__main:has(.ons-panel--error) { + margin-top: 1rem; } .ons-page__body {