Skip to content

Commit

Permalink
Move language select click handling to a instead of li; drop unneeded…
Browse files Browse the repository at this point in the history
… home route
  • Loading branch information
mattstauffer committed Mar 8, 2021
1 parent 162bfd6 commit e67a87d
Show file tree
Hide file tree
Showing 5 changed files with 96 additions and 6 deletions.
3 changes: 3 additions & 0 deletions .stylelintrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{
"extends": "stylelint-config-standard",
"ignoreFiles": [
"public/css/app.css"
],
"rules": {
"indentation": 4,
"at-rule-no-unknown": [ true, {
Expand Down
3 changes: 3 additions & 0 deletions public/css/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -442,15 +442,18 @@ textarea {
}

input::-moz-placeholder, textarea::-moz-placeholder {
opacity: 1;
color: #a1a1aa;
}

input:-ms-input-placeholder, textarea:-ms-input-placeholder {
opacity: 1;
color: #a1a1aa;
}

input::placeholder,
textarea::placeholder {
opacity: 1;
color: #a1a1aa;
}

Expand Down
87 changes: 85 additions & 2 deletions public/js/app.js

Large diffs are not rendered by default.

7 changes: 5 additions & 2 deletions resources/js/components/LanguageSelect.vue
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,13 @@
<li
v-for="(language, index) in languages"
:key="index"
@click="handleSelect(language)"
class="transition rounded-b-md hover:bg-gray-200"
>
<a href="#">
<a
href="#"
class="block"
@click.prevent="handleSelect(language)"
>
<p class="px-3 py-2">
{{ language.language_name_native }}
</p>
Expand Down
2 changes: 0 additions & 2 deletions routes/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,3 @@
Route::get('/', [LaravelVersionsController::class, 'index'])->name('versions.index');
Route::get('{version}', [LaravelVersionsController::class, 'show'])->name('versions.show');
});

Route::get('home', [App\Http\Controllers\HomeController::class, 'index'])->name('home');

0 comments on commit e67a87d

Please sign in to comment.