Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/fuzzy-kiwis-greet.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@primer/react": minor
---

Fix small TextInput to be the use the correct font size
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
112 changes: 112 additions & 0 deletions packages/react/src/__tests__/__snapshots__/TextInput.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -1658,6 +1658,18 @@ exports[`TextInput renders small 1`] = `
}
}

@media screen and (min-width:544px) {
.c0 {
font-size: 12px;
}
}

@media screen and (min-width:768px) {
.c0 {
font-size: 12px;
}
}

<span
aria-busy={false}
className="c0 c1 TextInput-wrapper"
Expand Down Expand Up @@ -4173,6 +4185,14 @@ exports[`TextInput renders with a loading indicator 1`] = `

}

@media screen and (min-width:544px) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder why these were added? 🤔

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, seemed strange but noticed they already existed and so I figured it was some artifact of using styled components.


}

@media screen and (min-width:768px) {

}

@media (min-width:768px) {

}
Expand Down Expand Up @@ -4391,6 +4411,14 @@ exports[`TextInput renders with a loading indicator 1`] = `

}

@media screen and (min-width:544px) {

}

@media screen and (min-width:768px) {

}

@media (min-width:768px) {

}
Expand Down Expand Up @@ -4647,6 +4675,14 @@ exports[`TextInput renders with a loading indicator 1`] = `

}

@media screen and (min-width:544px) {

}

@media screen and (min-width:768px) {

}

@media (min-width:768px) {

}
Expand Down Expand Up @@ -4874,6 +4910,14 @@ exports[`TextInput renders with a loading indicator 1`] = `

}

@media screen and (min-width:544px) {

}

@media screen and (min-width:768px) {

}

@media (min-width:768px) {

}
Expand Down Expand Up @@ -5175,6 +5219,14 @@ exports[`TextInput renders with a loading indicator 1`] = `

}

@media screen and (min-width:544px) {

}

@media screen and (min-width:768px) {

}

@media (min-width:768px) {

}
Expand Down Expand Up @@ -5476,6 +5528,14 @@ exports[`TextInput renders with a loading indicator 1`] = `

}

@media screen and (min-width:544px) {

}

@media screen and (min-width:768px) {

}

@media (min-width:768px) {

}
Expand Down Expand Up @@ -5771,6 +5831,14 @@ exports[`TextInput renders with a loading indicator 1`] = `

}

@media screen and (min-width:544px) {

}

@media screen and (min-width:768px) {

}

@media (min-width:768px) {

}
Expand Down Expand Up @@ -6028,6 +6096,14 @@ exports[`TextInput renders with a loading indicator 1`] = `

}

@media screen and (min-width:544px) {

}

@media screen and (min-width:768px) {

}

@media (min-width:768px) {

}
Expand Down Expand Up @@ -6323,6 +6399,14 @@ exports[`TextInput renders with a loading indicator 1`] = `

}

@media screen and (min-width:544px) {

}

@media screen and (min-width:768px) {

}

@media (min-width:768px) {

}
Expand Down Expand Up @@ -6597,6 +6681,18 @@ exports[`TextInput renders with a loading indicator 1`] = `
}
}

@media screen and (min-width:544px) {
.c0 {
font-size: 12px;
}
}

@media screen and (min-width:768px) {
.c0 {
font-size: 12px;
}
}

@media (min-width:768px) {

}
Expand Down Expand Up @@ -6938,6 +7034,14 @@ exports[`TextInput renders with a loading indicator 1`] = `

}

@media screen and (min-width:544px) {

}

@media screen and (min-width:768px) {

}

@media (min-width:768px) {

}
Expand Down Expand Up @@ -7282,6 +7386,14 @@ exports[`TextInput renders with a loading indicator 1`] = `

}

@media screen and (min-width:544px) {

}

@media screen and (min-width:768px) {

}

@media (min-width:768px) {
.c0 {
font-size: 14px;
Expand Down
Loading
Loading