Skip to content

Commit

Permalink
Merge pull request #784 from City-of-Helsinki/UHF-10771
Browse files Browse the repository at this point in the history
UHF-10771: Strip unused styles + form element
  • Loading branch information
jeremysteerio authored Dec 3, 2024
2 parents 4142910 + 6cfe13c commit f8ae2ad
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 22 deletions.
8 changes: 0 additions & 8 deletions public/modules/custom/helfi_etusivu/src/Form/NearYouForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,6 @@ public function getFormId() {
public function buildForm(array $form, FormStateInterface $form_state) {
$form['#attributes']['class'][] = 'helfi-etusivu-near-you-form';

$form['description'] = [
'#markup' =>
'<div class="helfi-etusivu-near-you-form__description">' .
$this->t('Find services, events, and news near you. Start by searching with your address.', [], ['context' => 'Helsinki near you']) .
'</div>',
'#type' => 'markup',
];

$form['q'] = [
'#autocomplete_route_name' => 'helfi_etusivu.helsinki_near_you_autocomplete',
'#placeholder' => $this->t('Eg. Vaasankatu 5', [], ['context' => 'Helsinki near you']),
Expand Down
4 changes: 0 additions & 4 deletions public/modules/custom/helfi_etusivu/translations/fi.po
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,6 @@ msgctxt "Helsinki near you"
msgid "First make a search with your address"
msgstr "Tee aluksi haku osoitteellasi"

msgctxt "Helsinki near you"
msgid "Find services, events, and news near you. Start by searching with your address."
msgstr "Löydä palvelut, tapahtumat ja uutiset läheltäsi. Aloita kirjoittamalla osoitteesi."

msgctxt "Helsinki near you"
msgid "Fill in your address to the search bar above and find services, events and news near you."
msgstr "Täytä osoitteesi yllä olevaan hakuun ja löydä palveluita, tapahtumia ja uutisia läheltäsi."
Expand Down
4 changes: 0 additions & 4 deletions public/modules/custom/helfi_etusivu/translations/sv.po
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,6 @@ msgctxt "Helsinki near you"
msgid "First make a search with your address"
msgstr "Först gör en sökning med din adress"

msgctxt "Helsinki near you"
msgid "Find services, events, and news near you. Start by searching with your address."
msgstr "Hitta tjänster, evenemang och nyheter nära dig. Börja med att söka med din adress."

msgctxt "Helsinki near you"
msgid "Fill in your address to the search bar above and find services, events and news near you."
msgstr "Fyll i din adress i sökfältet ovan och hitta tjänster, evenemang och nyheter nära dig."
Expand Down
2 changes: 1 addition & 1 deletion public/themes/custom/hdbt_subtheme/dist/css/styles.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,6 @@
margin-top: $spacing;
}

.helfi-etusivu-near-you-form__description {
@include font(body);
margin-top: $spacing;
}

.helfi-etusivu-near-you-form__address-input {
margin-top: $spacing-double;
}
Expand Down

0 comments on commit f8ae2ad

Please sign in to comment.