mediumPadding -> mediumPaddingHorizontal

mediumPadding will no longer work in InstUI 8

This noisy warning is polluting our test output.

Test plan:
 - All tests pass

flag=none

Change-Id: I4db876745b643755ec907f9d591381de933f6359
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/277573
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Eszter Szabo <eszter.szabo@instructure.com>
Reviewed-by: Ed Schiebel <eschiebel@instructure.com>
QA-Review: Ed Schiebel <eschiebel@instructure.com>
Product-Review: Syed Hussain <shussain@instructure.com>
This commit is contained in:
Aaron Shafovaloff 2021-11-06 08:00:30 -05:00
parent fc856c854e
commit 29973bc869
17 changed files with 22 additions and 22 deletions

View File

@ -216,7 +216,7 @@ export default function UnsplashPanel({source, setUnsplashData, brandColor, live
variant="link"
fluidWidth
theme={{
mediumPadding: '0'
mediumPaddingHorizontal: '0'
}}
onClick={() => {
setSelectedImage(resultImage.id)

View File

@ -29,7 +29,7 @@ export default function CourseListHeader({sort, order, onChangeSort, id, label,
<Button
variant="link"
onClick={preventDefault(() => onChangeSort(id))}
theme={{fontWeight: '700', mediumPadding: '0', mediumHeight: '1.5rem'}}
theme={{fontWeight: '700', mediumPaddingHorizontal: '0', mediumHeight: '1.5rem'}}
>
{label}
{sort === id ? order === 'asc' ? <IconMiniArrowUpSolid /> : <IconMiniArrowDownSolid /> : ''}

View File

@ -24,7 +24,7 @@ export default function UserLink({size, avatar_url, name, avatarName, ...propsTo
return (
<Button
variant="link"
theme={{mediumPadding: '0', mediumHeight: '1rem'}}
theme={{mediumPaddingHorizontal: '0', mediumHeight: '1rem'}}
{...propsToPassOnToLink}
>
<Avatar

View File

@ -38,7 +38,7 @@ export default function UsersListHeader(props) {
onUpdateFilters({search_term, sort: id, order: newOrder, role_filter_id})
})}
variant="link"
theme={{fontWeight: '700', mediumPadding: '0', mediumHeight: '1.5rem'}}
theme={{fontWeight: '700', mediumPaddingHorizontal: '0', mediumHeight: '1.5rem'}}
>
{label}
{sort === id ? (

View File

@ -76,7 +76,7 @@ export default class ExternalFeedsTray extends Component {
}}
href={this.props.atomFeedUrl}
icon={IconRssLine}
theme={{mediumPadding: '0', mediumHeight: '1.5rem'}}
theme={{mediumPaddingHorizontal: '0', mediumHeight: '1.5rem'}}
>
{I18n.t('RSS Feed')}
</Button>

View File

@ -63,7 +63,7 @@ export default class GridRow extends Component {
<th className="GradesGrid__BodyRowHeader" role="rowheader" scope="row">
<Button
variant="link"
theme={{mediumPadding: '0', mediumHeight: '1.25rem'}}
theme={{mediumPaddingHorizontal: '0', mediumHeight: '1.25rem'}}
href={this.props.row.speedGraderUrl}
>
{this.props.row.studentName}

View File

@ -34,7 +34,7 @@ export default function AssignmentGroupModuleNav({assignment}) {
data-testid="module-link"
href={env.moduleUrl}
variant="link"
theme={{mediumPadding: '0', mediumHeight: 'normal'}}
theme={{mediumPaddingHorizontal: '0', mediumHeight: 'normal'}}
>
{module.name}
</Button>
@ -46,7 +46,7 @@ export default function AssignmentGroupModuleNav({assignment}) {
data-testid="more-module-link"
href={env.moduleUrl}
variant="link"
theme={{mediumPadding: '0', mediumHeight: 'normal'}}
theme={{mediumPaddingHorizontal: '0', mediumHeight: 'normal'}}
>
{I18n.t('More Modules')}
</Button>
@ -59,7 +59,7 @@ export default function AssignmentGroupModuleNav({assignment}) {
data-testid="assignmentgroup-link"
href={env.assignmentUrl}
variant="link"
theme={{mediumPadding: '0', mediumHeight: 'normal'}}
theme={{mediumPadmediumPaddingHorizontalding: '0', mediumHeight: 'normal'}}
>
{assignmentGroup.name}
</Button>

View File

@ -155,7 +155,7 @@ export default class StudentTray extends React.Component {
icon={IconEmailLine}
buttonRef={b => (this.messageStudentsButton = b)}
onClick={this.handleMessageButtonClick}
theme={{mediumPadding: '0', mediumHeight: '1.5rem'}}
theme={{mediumPaddingHorizontal: '0', mediumHeight: '1.5rem'}}
>
{I18n.t('Message Student')}
</Button>
@ -164,7 +164,7 @@ export default class StudentTray extends React.Component {
variant="link"
icon={IconUploadLine}
onClick={this.handleSubmitForStudent}
theme={{mediumPadding: '0', mediumHeight: '1.5rem'}}
theme={{mediumPaddingHorizontal: '0', mediumHeight: '1.5rem'}}
>
{I18n.t('Submit for Student')}
</Button>

View File

@ -128,7 +128,7 @@ export default class StudentsTable extends React.Component {
href={viewLink}
target="_blank"
variant="link"
theme={{mediumPadding: '0', mediumHeight: 'normal'}}
theme={{mediumPaddingHorizontal: '0', mediumHeight: 'normal'}}
>
{I18n.t('Attempt %{number}', {number: attempt.attempt})}
</Button>

View File

@ -141,7 +141,7 @@ export default function ValidatorResultsRow(props) {
<Button
variant="link"
href={props.result.content_url}
theme={{mediumPadding: '0', mediumHeight: '1.25rem'}}
theme={{mediumPaddingHorizontal: '0', mediumHeight: '1.25rem'}}
>
{props.result.name}
</Button>

View File

@ -62,7 +62,7 @@ export default class SimilarityScore extends PureComponent {
variant="link"
icon={statusIcon}
href={reportUrl}
theme={{mediumPadding: '0', mediumHeight: 'normal'}}
theme={{mediumPaddingHorizontal: '0', mediumHeight: 'normal'}}
>
<Text margin="auto auto auto small">
{I18n.t('%{score}% similarity score', {score: displayScore})}

View File

@ -120,7 +120,7 @@ export default class SubmissionCommentListItem extends React.Component {
<Button
href={this.props.authorUrl}
variant="link"
theme={{mediumPadding: '0', mediumHeight: 'normal'}}
theme={{mediumPaddingHorizontal: '0', mediumHeight: 'normal'}}
margin="none none xxx-small"
>
{TextHelper.truncateText(this.props.author, {max: 22})}

View File

@ -343,7 +343,7 @@ export default class SubmissionTray extends React.Component {
<Button
href={this.props.student.gradesUrl}
variant="link"
theme={{mediumPadding: '0', mediumHeight: 'normal'}}
theme={{mediumPaddingHorizontal: '0', mediumHeight: 'normal'}}
>
{name}
</Button>
@ -364,7 +364,7 @@ export default class SubmissionTray extends React.Component {
<Button
href={this.props.assignment.htmlUrl}
variant="link"
theme={{mediumPadding: '0', mediumHeight: 'normal'}}
theme={{mediumPaddingHorizontal: '0', mediumHeight: 'normal'}}
>
{this.props.assignment.name}
</Button>

View File

@ -225,7 +225,7 @@ export default class PermissionsTable extends Component {
variant="link"
onClick={() => this.props.setAndOpenPermissionTray(perm)}
id={`permission_${name}`}
theme={{mediumPadding: '0', mediumHeight: 'normal'}}
theme={{mediumPaddingHorizontal: '0', mediumHeight: 'normal'}}
fluidWidth
>
{perm.label}

View File

@ -208,7 +208,7 @@ class DuplicateSection extends React.Component {
<Button
variant="link"
onClick={this.onSelectNewForDuplicate}
theme={{mediumPadding: '0', mediumHeight: 'normal'}}
theme={{mediumPaddingHorizontal: '0', mediumHeight: 'normal'}}
>
{I18n.t('Create a new user for "%{address}"', {address: duplicateSet.address})}
</Button>
@ -237,7 +237,7 @@ class DuplicateSection extends React.Component {
<Button
onClick={this.onSkipDuplicate}
variant="link"
theme={{mediumPadding: '0', mediumHeight: 'normal'}}
theme={{mediumPaddingHorizontal: '0', mediumHeight: 'normal'}}
>
{I18n.t('Dont add this user for now.')}
</Button>

View File

@ -303,7 +303,7 @@ class MissingPeopleSection extends React.Component {
variant="link"
onClick={this.onSelectNewForMissing}
data-address={missing.address}
theme={{mediumPadding: '0', mediumHeight: 'normal'}}
theme={{mediumPaddingHorizontal: '0', mediumHeight: 'normal'}}
>
{namePrompt}
</Button>

View File

@ -171,7 +171,7 @@ class CourseHomeDialog extends React.Component {
<Button
variant="link"
href={wikiUrl}
theme={{mediumPadding: '0', mediumHeight: '1.5rem'}}
theme={{mediumPaddingHorizontal: '0', mediumHeight: '1.5rem'}}
>
{I18n.t('Front Page must be set first')}
</Button>