Skip to content

Commit

Permalink
chore: Change "small" to "micro"
Browse files Browse the repository at this point in the history
  • Loading branch information
tofumatt committed Jan 26, 2018
1 parent 840bad3 commit e94f299
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/amo/components/DownloadFirefoxButton/index.js
Expand Up @@ -33,7 +33,7 @@ export const DownloadFirefoxButtonBase = ({
<Button
className={makeClassName('DownloadFirefoxButton', className)}
href={`https://www.mozilla.org/firefox/new/${queryString}`}
small
micro
type="confirm"
>
{i18n.gettext('Download Firefox')}
Expand Down
2 changes: 1 addition & 1 deletion src/amo/components/ReportAbuseButton/index.js
Expand Up @@ -201,7 +201,7 @@ export class ReportAbuseButtonBase extends React.Component<Props> {
className="ReportAbuseButton-send-report"
disabled={sendButtonIsDisabled}
onClick={this.sendReport}
small
micro
type="alert"
>
{loading ?
Expand Down
2 changes: 1 addition & 1 deletion src/core/components/AuthenticateButton/index.js
Expand Up @@ -86,7 +86,7 @@ export class AuthenticateButtonBase extends React.Component<Props> {
href={`#${siteUser ? 'logout' : 'login'}`}
className={className}
onClick={this.onClick}
small
micro
type={type}
>
{noIcon ? null : <Icon name="user-dark" />}
Expand Down
3 changes: 2 additions & 1 deletion src/core/components/PaginatorLink/index.js
Expand Up @@ -43,7 +43,8 @@ export default class PaginatorLink extends React.Component {
return (
<Button
key={page}
className={makeClassName('Paginate-item', 'disabled', className)}
className={makeClassName('Paginate-item', className)}
disabled
type="light"
>
{text || page}
Expand Down
6 changes: 1 addition & 5 deletions src/ui/components/Button/index.js
Expand Up @@ -27,8 +27,6 @@ export default class Button extends React.Component {
href: PropTypes.string,
micro: PropTypes.boolean,
puffy: PropTypes.boolean,
// Small is an alias for micro.
small: PropTypes.boolean,
to: PropTypes.string,
type: PropTypes.string,
}
Expand All @@ -37,7 +35,6 @@ export default class Button extends React.Component {
disabled: false,
micro: false,
puffy: false,
small: false,
}

render() {
Expand All @@ -47,7 +44,6 @@ export default class Button extends React.Component {
href,
micro,
puffy,
small,
to,
type,
...rest
Expand All @@ -62,7 +58,7 @@ export default class Button extends React.Component {
return makeClassName(
'Button', `Button--${type}`, className, ...classConfig, {
'Button--disabled': props.disabled,
'Button--micro': micro || small,
'Button--micro': micro,
'Button--puffy': puffy,
},
);
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/core/components/TestPaginatorLink.js
Expand Up @@ -54,7 +54,7 @@ describe('<PaginatorLink />', () => {
it('does not contain a link and is disabled', () => {
const item = renderLink({ currentPage: 3, page: 3 });

expect(item).toHaveClassName('disabled');
expect(item).toHaveProp('disabled', true);
expect(item.prop('to')).toEqual(undefined);
expect(item.prop('children')).toEqual(3);
});
Expand Down

0 comments on commit e94f299

Please sign in to comment.