Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FAU-403] Correct typo in HTML class name #37

Merged
merged 1 commit into from
Jul 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion resources/scss/components/search/_search-form.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@use "../../abstracts/config";

.c-degree-programs-sarchform {
.c-degree-programs-searchform {
background-color: config.color("grey", "light");
width: 100%;
padding: 10px 15px;
Expand Down
2 changes: 1 addition & 1 deletion resources/ts/form/input-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import isReducedMotion from '../common/reduced-motion-detection';
import submitForm from './form-handler';
import { toggleSingleActiveFilter } from '../filters/active-filters';

const INPUT_SELECTOR = '.c-degree-programs-sarchform__input';
const INPUT_SELECTOR = '.c-degree-programs-searchform__input';
const MIN_CHARACTERS = 3;

export const SEARCH_ACTIVE_FILTER_LABEL = _x(
Expand Down
10 changes: 5 additions & 5 deletions templates/search/text-input-search.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,27 +22,27 @@

?>

<div class="c-degree-programs-sarchform">
<div class="c-degree-programs-sarchform__inner">
<div class="c-degree-programs-searchform">
<div class="c-degree-programs-searchform__inner">
<?= renderComponent(
new Component(
Icon::class,
['name' => 'search', 'className' => 'c-degree-programs-sarchform__search-icon']
['name' => 'search', 'className' => 'c-degree-programs-searchform__search-icon']
)
) ?>

<input
type="search"
name="<?= esc_attr($name) ?>"
value="<?= esc_attr($searchQuery) ?>"
class="c-degree-programs-sarchform__input"
class="c-degree-programs-searchform__input"
placeholder="<?= esc_attr_x(
'Please enter search term...',
'frontoffice: degree programs search form',
'fau-degree-program-output'
) ?>"
/>
<button class="c-degree-programs-sarchform__submit" type="submit">
<button class="c-degree-programs-searchform__submit" type="submit">
<span class="label">
<?= esc_html_x(
'Search',
Expand Down