-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Textfield: Fixed font bugs #1663
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
Changes from 4 commits
9b2a942
fab6901
c079a4b
a54f58e
451b326
d2a9d25
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| { | ||
| "changes": [ | ||
| { | ||
| "packageName": "office-ui-fabric-react", | ||
| "comment": "TextField: Fixed bugs in textfield font family and focus borders", | ||
| "type": "patch" | ||
| } | ||
| ], | ||
| "email": "micahgodbolt@gmail.com" | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -147,7 +147,7 @@ export class TextField extends BaseComponent<ITextFieldProps, ITextFieldState> i | |
| return ( | ||
| <div className={ textFieldClassName }> | ||
| { label && <Label htmlFor={ this._id }>{ label }</Label> } | ||
| <div className={ css(styles.fieldGroup) }> | ||
| <div className={ css(styles.fieldGroup, isFocused && styles.fieldGroupIsFocused) }> | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ? but probably doesn't matter
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @cschleiden i believe we're actually trying to move away from that notation for compatibility with Glamor.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Really? It's so much nicer than the other one :) @dzearing ?
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I would suggest seperating out separate lines for each rule, but yes, I'd like to move away from the object notation, for example: <div
className={
css(
styles.fieldGroup,
isFocused && styles.fieldGroupIsFocused
) }
/>FWIW: when we introduce glamor, we need to normalize what the css({
background: red
})whereas ours takes strings. I'd love a helper that can take both: css(
'myStringClassName',
{ background: 'red' }
)Which should return a string
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The object map notation is kind of nice, but really it is weird that we have 2 different ways to do the same thing and it would be nice to be consistent. If we can move away from the object maps, that opens the door to using the new helper. I will need to call it something other than |
||
| { (addonString !== undefined || this.props.onRenderAddon) && ( | ||
| <div className={ css(styles.fieldAddon) }> | ||
| { onRenderAddon(this.props, this._onRenderAddon) } | ||
|
|
||
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.
is this outline:0 necessary?
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'm not adding it, just moved it from 124.