Skip to content

Commit

Permalink
update logic
Browse files Browse the repository at this point in the history
  • Loading branch information
rmccar committed Oct 27, 2023
1 parent 7776f82 commit 7e189e3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
10 changes: 6 additions & 4 deletions src/components/button/button.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,13 @@ export default class SubmitButton {
}

linkButtonKeyDown(event) {
if (event.keyCode == 32) {
event.preventDefault();
this.button.click();
if (event.keyCode == 32 || event.keyCode == 13) {
this.button.classList.add('active');
if (event.keyCode == 32) {
event.preventDefault();
this.button.click();
}
}
this.button.classList.add('active');
}

linkButtonKeyUp(event) {
Expand Down
2 changes: 1 addition & 1 deletion src/components/card/_card.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
& > .ons-card__title {
margin-bottom: 0;
}
}
}

&__link:hover {
text-decoration-thickness: 3px;
Expand Down
6 changes: 2 additions & 4 deletions src/scss/objects/_page.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 7e189e3

Please sign in to comment.