Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 69b1040

Browse files
committed
remove/refactor unnecessary muted styles
1 parent 5dc85e8 commit 69b1040

8 files changed

Lines changed: 22 additions & 15 deletions

File tree

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{% load link_tags %}
22
<li class="list-item{% if active %} list-item--active{% endif %}{% if compact %} list-item--compact{% endif %}{% if extra_compact %} list-item--extra-compact{% endif %}">
33
{% if href %}<a class="link" href="{{ href }}">{% endif %}
4-
{% if caption %}<p class="utrecht-paragraph list-item__caption">{{ caption }}</p>{% endif %}
4+
{% if caption %}<nl-paragraph class-name="list-item__caption">{{ caption }}</nl-paragraph>{% endif %}
55
{% if strong %}
66
<p class="utrecht-heading-4">{{ text }}</p>
77
{% else %}
88
<nl-paragraph>{{ text }}</nl-paragraph>
99
{% endif %}
10-
{% if description %}<p class="utrecht-paragraph utrecht-paragraph--oip utrecht-paragraph--oip-muted">{{ description }}</p>{% endif %}
10+
{% if description %}<nl-paragraph class-name="nl-paragraph--oip nl-paragraph--oip-muted">{{ description }}</nl-paragraph>{% endif %}
1111
{% if href %}</a>{% endif %}
1212
</li>

src/open_inwoner/components/templates/components/Messages/Message.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@
1212
</div>
1313

1414
<footer class="message__footer">
15-
<nl-paragraph class-name="nl-paragraph--oip nl-paragraph--oip utrecht-paragraph--oip-muted nl-paragraph--small" title="{{ message.created_on }}">{{ message.created_on|time }}</nl-paragraph>
15+
<nl-paragraph class-name="nl-paragraph--oip nl-paragraph--oip-muted nl-paragraph--small" title="{{ message.created_on }}">{{ message.created_on|time }}</nl-paragraph>
1616
</footer>
1717
</aside>

src/open_inwoner/components/templates/components/Messages/Messages.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<section class="messages">
44
<header class="messages__header">
55
<h2 class="utrecht-heading-4">{{ subject }}</h2>
6-
<p class="utrecht-paragraph utrecht-paragraph--oip utrecht-paragraph--oip-muted">{{ status }}</p>
6+
<nl-paragraph class-name="nl-paragraph--oip nl-paragraph--oip-muted">{{ status }}</nl-paragraph>
77
</header>
88

99

@@ -17,7 +17,7 @@ <h2 class="utrecht-heading-4">{{ subject }}</h2>
1717
{% for day in days %}
1818
<li class="messages__day">
1919
<header class="messages__day-header">
20-
<p class="utrecht-paragraph utrecht-paragraph--oip utrecht-paragraph--oip-paragraph-muted">{{ day.text }}</p>
20+
<nl-paragraph class-name="nl-paragraph--oip nl-paragraph--oip-paragraph-muted">{{ day.text }}</nl-paragraph>
2121
</header>
2222

2323
<ol class="messages__list">
@@ -72,7 +72,7 @@ <h2 class="utrecht-heading-4">{{ subject }}</h2>
7272
{% form_actions primary_text=_("Verzenden") primary_icon='arrow_forward' %}
7373
{% endrender_form %}
7474
{% else %}
75-
<p class="utrecht-paragraph utrecht-paragraph--oip utrecht-paragraph--oip-paragraph-muted">{% trans "De gebruiker is inactief. Het is niet mogelijk een bericht te sturen." %}</p>
75+
<nl-paragraph class-name="nl-paragraph--oip nl-paragraph--oip-paragraph-muted">{% trans "De gebruiker is inactief. Het is niet mogelijk een bericht te sturen." %}</nl-paragraph>
7676
{% endif %}
7777
</div>
7878
</section>

src/open_inwoner/react/components/Paragraph/Paragraph.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,8 @@
1616
text-align: var(--oip-utrecht-paragraph-centered-text-align);
1717
}
1818
}
19+
// Remove Safari iOS phone-parsing from specific paragraphs
20+
.skip-phone-parsing {
21+
pointer-events: none;
22+
}
1923
}

src/open_inwoner/scss/components/Card/Card.scss

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,10 @@
190190

191191
&__caption {
192192
color: var(--color-gray-dark-900);
193-
margin: 0;
193+
margin-block-start: 0;
194+
margin-block-end: 0;
195+
margin-inline-start: 0;
196+
margin-inline-end: 0;
194197
}
195198

196199
&__text--small {

src/open_inwoner/scss/components/List/_ListItem.scss

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,18 @@
2222
padding: 0;
2323
}
2424

25-
& .list-item__caption {
26-
line-height: var(--font-line-height-body-small);
27-
}
28-
2925
&--compact:first-child {
3026
padding-top: 0;
3127
}
3228

3329
& &__caption {
3430
color: var(--color-gray-dark-900);
3531
font-size: var(--font-size-body-small);
36-
margin-top: 0;
32+
line-height: var(--font-line-height-body-small);
33+
margin-block-start: 0;
34+
margin-block-end: 0;
35+
margin-inline-start: 0;
36+
margin-inline-end: 0;
3737
}
3838

3939
.link {

src/open_inwoner/scss/views/App.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@
193193

194194
--color-body: var(--color-gray-dark);
195195
// changed to #949494 to get the required 3:1 contrast ratio - in case of decorative border use var(--color-gray).
196-
--color-mute: #949494;
196+
--color-mute: #757575;
197197
// text-color for muted text inside tinted cards
198198
--color-tinted-mute: #696969;
199199

src/open_inwoner/templates/pages/cases/list_inner.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@ <h2 class="card__heading-2">{{ zaak.description }}</h2>
8585
{% list_item zaak.current_status caption=_("Status") compact=True strong=False %}
8686
{% endif %}
8787
<li class="list-item list-item--compact">
88-
<p class="utrecht-paragraph list-item__caption">Zaaknummer</p>
89-
<p class="utrecht-paragraph skip-phone-parsing">&zwj;{{ zaak.identification }}</p>
88+
<nl-paragraph class-name="list-item__caption">Zaaknummer</nl-paragraph>
89+
<nl-paragraph class-name="skip-phone-parsing">&zwj;{{ zaak.identification }}</nl-paragraph>
9090
</li>
9191
{% endrender_list %}
9292

0 commit comments

Comments
 (0)