Skip to content

Commit

Permalink
update css and test
Browse files Browse the repository at this point in the history
  • Loading branch information
precious-onyenaucheya-ons committed Dec 16, 2024
1 parent ba37ef9 commit 65d5a14
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 6 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 0 additions & 4 deletions src/components/hero/_hero.scss
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,6 @@
height: 100%;
}

&__text:has(+ .ons-btn) {
margin-bottom: 2rem;
}

&__pre-title {
margin-bottom: 0.5rem;

Expand Down
2 changes: 1 addition & 1 deletion src/components/hero/_macro.njk
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
{% endif %}
{{
onsButton({
"classes": btnClasses,
"classes": ' ons-u-mt-s ' + btnClasses,
"type": 'button',
"text": params.button.text,
"url": params.button.url
Expand Down
2 changes: 1 addition & 1 deletion src/components/hero/_macro.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ describe('macro: hero', () => {

faker.renderComponent('hero', { ...EXAMPLE_HERO, variants: 'dark' });

expect(buttonSpy.occurrences[0]).toHaveProperty('classes', ' ons-btn--ghost');
expect(buttonSpy.occurrences[0]).toHaveProperty('classes', 'ons-u-mt-s ons-btn--ghost');
});

it('calls with content', () => {
Expand Down

0 comments on commit 65d5a14

Please sign in to comment.