-
Notifications
You must be signed in to change notification settings - Fork 2
コアブロックのナビゲーションメニューの縦並び時の不具合修正 #245
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
Closed
Closed
Changes from 17 commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
8eacc80
Update _navigation.scss
mtdkei 5b6bae9
Update _navigation.scss
mtdkei ab45ab3
Update _navigation.scss
mtdkei 6e591cb
Update _navigation.scss
mtdkei 3b1c977
Update _navigation.scss
mtdkei e4ec3ec
Update _navigation.scss
mtdkei 3b19116
Update readme.txt
mtdkei 2aa3f82
Update _navigation.scss
mtdkei 3def443
Update _navigation.scss
mtdkei a062ecf
Merge branch 'master' into fix/core-navigation-submenu-design
kurudrive c04b354
Fixed a typo
mtdkei 59ca82f
Fix SCSS for submenus
mtdkei 7ddf10e
gapが効かなかったのを修正
goutetsuguma 153ed68
Merge branch 'master' into fix/core-navigation-submenu-design
goutetsuguma 9c0c574
Merge branch 'master' into fix/core-navigation-submenu-design
d066dce
Fix: footer navigation
54f754c
delete space
kurudrive 5be2534
Merge branch 'master' into fix/core-navigation-submenu-design
kurudrive 42e5366
Merge branch 'master' into fix/core-navigation-submenu-design
kurudrive 06fd940
Merge branch 'master' into fix/core-navigation-submenu-design
kurudrive 1a2aa2b
Merge branch 'master' into fix/core-navigation-submenu-design
kurudrive 15007c4
Merge branch 'master' into fix/core-navigation-submenu-design
kurudrive File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mtdkei / Cc: @goutetsuguma @sysbird
変更ありがとうございます!
対象セレクタのクラス名を変更する場合、
もともとなぜそのセレクタになっていたのかを慎重に考えてみましょう(・w・b
この場合、"__responsive-container" が対応になってますが...
よくよく考えたらこのCSSは常時表示のメニュー(ハンバーガーメニューに切り替わらないメニュー)でも当てないといけない内容でしたので、それに気づいてなくて __responsive-container をセレクタにしていた僕の認識間違いです。
なので、このクラス名の変更自体は正しいです。ありがとうございます。
ただ、ここを変更するという事は 他に __responsive-container をセレクタにしている箇所がある場合は同じ勘違い・不具合が発生している可能性が考えられます。
となってくると、これは "縦並びの不具合修正" とは別の意図になってきますので、別のプルリクにしました。
#314
実際こういった感じで、テーマのCSSの修正は元の意図がわかりにくかったり、得にこのテーマはフルサイト編集が初期の頃に手探りで作ったものなので、現行の仕様では不要になった指定や、単純な僕の間違いなども含んでいる事もあり、何気に修正が難しいです。
各意図を把握した上でプルリクを分けないと、後から「なんでこれに指定したんだろう」と思った時も追いにくくなるので、注意しましょう。
実際こういう修正作業は難しいというか、「他人が作ったモノの意図なんかわかるかい!」という部分も多分に含んでしまうので、ものすごく触りにくいと思います。
「そんなん作った石川さんじゃないと気づかないじゃん」案件だと僕も思います。
それを踏まえて、他の人が見て意図がわかるようにテーマのCSSでは特にコメントなど工夫したり、プルリクを細かく区切って出した方がいいかもしれません。
無理難題な気は僕もしているのですが、テーマのCSSを変更する時はそのあたりも気にしつつよろしくお願いいたします。
( ̄人 ̄)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
確かにおっしゃる通りです。ありがとうございます。
プルリクとしてこちらに出していいものか迷ってた部分がありましたのでご確認いただけて幸いです。
今後クラス名を変更する場合はこの点を特に気をつけてみてみたりコメントアウトを残します。