-
Notifications
You must be signed in to change notification settings - Fork 86
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
Search field improvements #4199
Conversation
<div className="search-handler" role="search"> | ||
<label | ||
className="trigger-icon" | ||
htmlFor="vocabulary-search" | ||
aria-label={gettext('Toggle search')} | ||
onClick={() => { | ||
this.setState({searchExtended: !this.state.searchExtended}); |
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.
if change removes usages of a variable, variable declaration has to be removed too - in this case in type definition and constructor. see searchExtended
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.
Done
@@ -350,7 +350,10 @@ export class ArticlesListByQueryWithFilters extends React.PureComponent<IProps, | |||
</h3> | |||
<Badge type="default">{itemsCount}</Badge> | |||
</div> | |||
<div style={{marginLeft: 10, flexGrow: 1}}> | |||
<div | |||
className="sd-display--flex sd-flex--grow |
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.
double quotes don't support being used across multiple lines.
instead use:
<div
className={classnames(
'class1',
'class2',
'class3',
)}
/>
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.
Done.
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.
Good to know :)
<label | ||
htmlFor={_uniqueId} | ||
className="trigger-icon" | ||
onClick={this.toggleSearchBar} |
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.
if change removes usages of a variable, variable declaration has to be removed too
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.
Done
styles/sass/sf-additional.scss
Outdated
} | ||
|
||
// Padding | ||
.sd-padding-s { |
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.
it'd be clearer to use padding-start
instead of padding-s
. padding-s might as well be understood as "padding small". I'd use the full word for e
too.
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.
Done
No description provided.