Skip to content

Commit

Permalink
feat(ZNTA-2156) revert styling changes that are inconsistent with rej…
Browse files Browse the repository at this point in the history
…ect translations admin screen
  • Loading branch information
kgough committed Aug 23, 2017
1 parent b01d835 commit 247b672
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,15 @@ storiesOf('RejectTranslationModal', module)
))
.add('Translation errors [critical]', () => (
<RejectTranslationModal show
criteria={<span><strong>Translation Errors</strong> (terminology,
mistranslated addition, omission, un-localized, do not translate, etc)</span>}
criteria="Translation Errors (terminology, mistranslated addition, omission, un-localized, do not translate, etc)"
priority="Critical" textState="u-textDanger" />
))
.add('Style Guide and Glossary Violations [minor]', () => (
<RejectTranslationModal show criteria={<span><strong>Style Guide and Glossary Violations</strong></span>} priority="Minor" />
<RejectTranslationModal show criteria="Style Guide and Glossary Violations" priority="Minor" />
))

.add('Other [major]', () => (
<RejectTranslationModal show
criteria={<span><strong>Other</strong> (reason may be in comment section/history if necessary)</span>}
criteria="Other (reason may be in comment section/history if necessary)"
priority="Major" textState="u-textWarning" />
))
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,6 @@
flex-grow: 2;
}

.criteria strong {
font-weight: 600;
}

a.Dropdown-item span.s0 {
vertical-align: var(--TM-icon-vert-alignment);
margin-left: var(--TM-small-margin);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export class RejectTranslationModal extends Component {
'u-textDanger'
]
),
criteria: PropTypes.object
criteria: PropTypes.string.isRequired
}

constructor (props) {
Expand Down Expand Up @@ -91,18 +91,18 @@ export class RejectTranslationModal extends Component {
<Dropdown.Content>
<ul>
<li className="Dropdown-item" onClick={this.toggleDropdown}>
<strong>Translation Errors</strong> (terminology, mistranslated, addition, omission, un-localized, do not translate, etc)</li>
Translation Errors (terminology, mistranslated, addition, omission, un-localized, do not translate, etc)</li>
<li className="Dropdown-item" onClick={this.toggleDropdown}>
<strong>Language Quality</strong> (grammar, spelling, punctuation, typo, ambiguous wording, product name, sentence structuring,
Language Quality (grammar, spelling, punctuation, typo, ambiguous wording, product name, sentence structuring,
readability, word choice, not natural, too literal, style and tone, etc)
</li>
<li className="Dropdown-item" onClick={this.toggleDropdown}>
<strong>Consistency</strong> (inconsistent style or vocabulary, brand inconsistency, etc.)</li>
<li className="Dropdown-item" onClick={this.toggleDropdown}><strong>Style Guide & Glossary Violations</strong></li>
Consistency (inconsistent style or vocabulary, brand inconsistency, etc.)</li>
<li className="Dropdown-item" onClick={this.toggleDropdown}>Style Guide & Glossary Violations</li>
<li className="Dropdown-item" onClick={this.toggleDropdown}>
<strong>Format</strong> (mismatches, white-spaces, tag error or missing, special character, numeric format, truncated, etc.)</li>
Format (mismatches, white-spaces, tag error or missing, special character, numeric format, truncated, etc.)</li>
<li className="Dropdown-item" onClick={this.toggleDropdown}>
<strong>Other</strong> (reason may be in comment section/history if necessary)</li>
Other (reason may be in comment section/history if necessary)</li>
</ul>
</Dropdown.Content>
</Dropdown>
Expand Down

0 comments on commit 247b672

Please sign in to comment.