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

Fix/navigationbar #45

Merged
merged 14 commits into from
Nov 11, 2022
Merged

Fix/navigationbar #45

merged 14 commits into from
Nov 11, 2022

Conversation

tesso57
Copy link
Member

@tesso57 tesso57 commented Nov 2, 2022

No description provided.

src/components/NavigationBar/NavigationLinksItem.vue Outdated Show resolved Hide resolved
src/components/NavigationBar/NavigationLinksItem.vue Outdated Show resolved Hide resolved
src/components/NavigationBar/NavigationLinksItem.vue Outdated Show resolved Hide resolved
Comment on lines +23 to +28
.icon {
cursor: pointer;
color: $color-secondary;
&:hover {
opacity: 0.8;
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

iconってなんかdisplay: flex;つけないと下にちょっと余白できちゃって高さが微妙な感じになるので毎回つけてるんですけど、Iconコンポーネント自体をいじった方がいいんですかね🤔

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

確かに、そうした方が便利かもですね。


const isActive = computed(() => {
if (props.path === '/') return currentRoute.path === props.path
return currentRoute.path.startsWith(`${props.path}`)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ここ前に気になってたので実装してもらえて:tasukaru::gozaimasu:

Copy link
Contributor

@mehm8128 mehm8128 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

すみません追加で🙏

Copy link
Contributor

@mehm8128 mehm8128 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

書き方ちょっとだけ気になったところ指摘したのですが、後は大丈夫そうです
感謝❗️🙌✨感謝❗️🙌✨

src/components/NavigationBar/NavigationLinksItem.vue Outdated Show resolved Hide resolved
src/components/NavigationBar/NavigationLinksItem.vue Outdated Show resolved Hide resolved
Copy link
Member

@toshi-pono toshi-pono left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

だいたい良さそうです:+1:
細かい部分ばかりなんですが、気づいたことを書いておいたので確認していただけると助かります:pray:

src/App.vue Outdated Show resolved Hide resolved
src/App.vue Outdated Show resolved Hide resolved
import NavigationLinksItem from './NavigationLinksItem.vue'
import { routes } from '/@/use/routeInfo'
</script>

<template>
<ul>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ulの子要素は0個以上のli、script、templateらしいです。
今、navigation-links-itemがaタグで、直下にaタグが来てるのでliタグが来るように修正したほうがいいかも?です。

https://developer.mozilla.org/ja/docs/Web/HTML/Element/ul

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

aタグは透過的コンテンツなのでul>a>liの構造でもul>liとみなせて問題ないはずです (もちろん逆でも問題はない)
https://developer.mozilla.org/ja/docs/Web/HTML/Element/a

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

確かに大丈夫そうですね。ありがとうございます:pray:

src/components/UI/FormInput.vue Outdated Show resolved Hide resolved
src/components/NavigationBar/NavigationBarFooter.vue Outdated Show resolved Hide resolved
src/components/NavigationBar/NavigationLinksItem.vue Outdated Show resolved Hide resolved
import NavigationLinksItem from './NavigationLinksItem.vue'
import { routes } from '/@/use/routeInfo'
</script>

<template>
<ul>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

aタグは透過的コンテンツなのでul>a>liの構造でもul>liとみなせて問題ないはずです (もちろん逆でも問題はない)
https://developer.mozilla.org/ja/docs/Web/HTML/Element/a

@tesso57 tesso57 merged commit 45cd891 into main Nov 11, 2022
@tesso57 tesso57 deleted the fix/navigationbar branch November 11, 2022 04:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants