Skip to content

Commit 23a414c

Browse files
committed
Extract the arrow into CSS generated decorative content
1 parent 262847b commit 23a414c

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

djangoproject/scss/_style.scss

+12
Original file line numberDiff line numberDiff line change
@@ -1345,6 +1345,18 @@ label[for] {
13451345
margin: 10px 0;
13461346
}
13471347

1348+
.cta.arrow {
1349+
height: auto;
1350+
&::after {
1351+
content: "" / "";
1352+
}
1353+
&:dir(rtl) {
1354+
&::after {
1355+
content: "" / "";
1356+
}
1357+
}
1358+
}
1359+
13481360
.callout-right {
13491361
@include respond-min(768px) {
13501362
float: right;

djangoproject/templates/contact/foundation.html

+4-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ <h1>{% translate "Contact the Django Software Foundation" %}</h1>
2929
<a href="https://forum.djangoproject.com">Django Forum</a>.
3030
{% endblocktranslate %}
3131
</p>
32-
<form action="." method="post" accept-charset="utf-8" class="form-input">
32+
<form action="." method="post" accept-charset="utf-8">
3333
{% csrf_token %}
3434
<div>
3535
{{ form.name.as_field_group }}
@@ -44,6 +44,8 @@ <h1>{% translate "Contact the Django Software Foundation" %}</h1>
4444
{{ form.body.as_field_group }}
4545
</div>
4646
{{ form.captcha }}
47-
<p class="submit"><input type="submit" class="cta" value="{% translate "Send &rarr;" %}"></p>
47+
<p class="submit">
48+
<button type="submit" class="cta arrow">{% translate "Send" %}</button>
49+
</p>
4850
</form>
4951
{% endblock %}

0 commit comments

Comments
 (0)