-
Notifications
You must be signed in to change notification settings - Fork 60
Other declaration pills should be clickable when there are changes data #832
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
Other declaration pills should be clickable when there are changes data #832
Conversation
Refactor the DeclarationGroup/List logic
pill shouldn't be selected if the list is in expanded state
Fix background color of selected pill & clean up css
improve animation for long decl list: 1. bump to top of page first 2. decrease wait time
remove unnecessary checks in `Declaration` test
add test for `DeclarationGroup`
fix changes class for decl without other decls
fix modified declaration with no other decl
Add test for `DeclarationList`
Update test for `DeclarationDiff`
@swift-ci test |
chore: remove extra empty line
@swift-ci test |
1 similar comment
@swift-ci test |
do not highlight diff in collapsed state
@swift-ci test |
@@ -17,7 +17,6 @@ | |||
:key="i" | |||
:declaration="declaration" | |||
:should-caption="currentDeclarations.length > 1" | |||
:changeType="changeType" |
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.
Should we remove changeType
as a prop for this component? It doesn't seem like it's being used anymore.
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.
I think it's still used when we use the DeclarationList
component in Declaration.vue
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.
Ops you meant DeclarationDiff
component, not DeclarationList
lol
src/components/DocumentationTopic/PrimaryContent/DeclarationGroup.vue
Outdated
Show resolved
Hide resolved
remove `isSwift` prop
@swift-ci test |
remove `changeType` prop
@swift-ci test |
…hhuang/swift-docc-render into decl-diff-other-decl-button-clickable
@swift-ci test |
…ta (swiftlang#832) rdar://127125451 Other declaration pills should be clickable when there are changes data (swiftlang#832) rdar://127125451
Bug/issue #, if applicable: rdar://127125451
Summary
Other declaration pills should be clickable when there are changes data, and when the list of other declarations are expanded.
Testing
Steps:
Currently working on writing tests.
Checklist
Make sure you check off the following items. If they cannot be completed, provide a reason.
npm test
, and it succeeded