Skip to content

Commit

Permalink
Merge branch 'main' into feature/48/remove-metadata-component
Browse files Browse the repository at this point in the history
  • Loading branch information
precious-onyenaucheya-ons authored Jul 25, 2024
2 parents 72403fb + 75c7901 commit 2dfa946
Show file tree
Hide file tree
Showing 15 changed files with 23 additions and 23 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.
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.
2 changes: 1 addition & 1 deletion lib/render-example.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export default function renderExample(templatePath, nunjucksEnvironment) {
{% extends 'layout/_template.njk' %}
{% block body %}
<div class="ons-u-p-m">
<div class="ons-u-p-l">
${data.body}
</div>
{% endblock %}
Expand Down
2 changes: 1 addition & 1 deletion lib/render-page-list.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default function renderPageList(pages, title, pageSearch = '') {
<title>${title}</title>
<link rel="stylesheet" href="/css/main.css">
</head>
<body class="ons-u-p-m">
<body class="ons-u-p-l">
<h1>${title}</h1>
${pageSearch}
<ul class="ons-list ons-list--dashed ons-u-pb-l">
Expand Down
2 changes: 1 addition & 1 deletion src/components/header/_macro.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -924,7 +924,7 @@ describe('mode: with site search autosuggest', () => {
autocomplete: 'off',
classes: 'ons-input-search ons-input-search--icon',
label: {
classes: 'ons-u-pl-m ons-label--white',
classes: 'ons-u-pl-l ons-label--white',
id: 'ons-site-search-label',
text: 'label',
},
Expand Down
2 changes: 1 addition & 1 deletion src/components/navigation/_macro.njk
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
{% if params.siteSearchAutosuggest %}
<div class="ons-navigation-search ons-js-navigation-search">
{% set autosuggestClasses = "ons-input-search ons-input-search--icon" %}
{% set autosuggestLabelClasses = "ons-u-pl-m" %}
{% set autosuggestLabelClasses = "ons-u-pl-l" %}
{% if params.variants == "neutral" %}
{% set autosuggestClasses = autosuggestClasses + ' ons-input-search--dark' %}
{% else %}
Expand Down
2 changes: 1 addition & 1 deletion src/components/navigation/_macro.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ describe('macro: navigation', () => {
classes: 'ons-input-search ons-input-search--icon',
label: {
id: 'ons-site-search-label',
classes: 'ons-u-pl-m ons-label--white',
classes: 'ons-u-pl-l ons-label--white',
},
},
});
Expand Down
2 changes: 1 addition & 1 deletion src/components/summary/_macro.njk
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@

{% if group.summaryLink %}
<div
class="ons-summary__link{{ ' ons-u-pt-s' if group.placeholderText or group.rows }}{{ ' ons-u-bt' if group.placeholderText is not defined and group.rows | length > 1 and params.variant != 'card' }}{{ ' ons-u-mb-xl' if not group.last }}"
class="ons-summary__link{{ ' ons-u-pt-s' if params.variant != 'card' and (group.placeholderText or group.rows) }}{{ ' ons-u-bt' if group.placeholderText is not defined and group.rows | length > 1 and params.variant != 'card' }}{{ ' ons-u-mb-xl' if not group.last }}"
>
{% set link %}
<a
Expand Down
2 changes: 1 addition & 1 deletion src/layout/_dsTemplate.njk
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"label": {
"text": "Search",
"id": "search-field-label",
"classes": "ons-u-pl-m"
"classes": "ons-u-pl-l"
},
"classes": "ons-input-search ons-input-search--icon ons-input-search--dark ons-u-mb-s",
"accessiblePlaceholder": true,
Expand Down
2 changes: 1 addition & 1 deletion src/scss/utilities/_index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
@import './grid';
@import './highlight';
@import './margin';
@import './pad';
@import './padding';
@import './typography';
@import './utilities';
@import './visibility';
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
// e.g ons-u-pl-m
$sizes: (
no: 0 !important,
xxs: 0.3rem,
no: 0,
xxs: 0.25rem,
xs: 0.5rem,
s: 1rem,
m: 2rem,
l: 3rem,
m: 1.5rem,
l: 2rem,
xl: 3rem,
);

$padding: (
Expand All @@ -19,7 +19,7 @@ $padding: (
@each $key, $value in $sizes {
@each $abbr, $dec in $padding {
@include bp-suffix(ons-u-#{$abbr}-#{$key}, $create-between-breakpoints: true) {
#{$dec}: #{$value};
#{$dec}: #{$value} !important;
}
}
}

0 comments on commit 2dfa946

Please sign in to comment.