Skip to content

Commit

Permalink
chore: button, file picker, combobox, pagination fixes (#3148)
Browse files Browse the repository at this point in the history
  • Loading branch information
nkrantz committed Apr 19, 2023
1 parent 0c38618 commit f267a9f
Show file tree
Hide file tree
Showing 9 changed files with 29 additions and 7 deletions.
6 changes: 6 additions & 0 deletions .changeset/brave-crabs-sort.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@twilio-paste/pagination': patch
'@twilio-paste/core': patch
---

[Pagination] specify label line height to fix alignment issue
6 changes: 6 additions & 0 deletions .changeset/cold-parrots-admire.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@twilio-paste/button': patch
'@twilio-paste/core': patch
---

[Button] Fix secondary destructive toggle button hover styles
6 changes: 6 additions & 0 deletions .changeset/mean-monkeys-dance.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@twilio-paste/file-picker': patch
'@twilio-paste/core': patch
---

[File picker] set width to 100% to match other input components
4 changes: 2 additions & 2 deletions packages/paste-core/components/button/src/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,8 @@ export const DestructiveSecondaryToggleStyles: BoxStyleProps = {
},
_pressed_hover: {
backgroundColor: 'colorBackgroundErrorWeakest',
boxShadow: 'shadowBorderError',
color: 'colorTextError',
boxShadow: 'shadowBorderErrorStronger',
color: 'colorTextErrorStronger',
},
_pressed_active: {
backgroundColor: 'colorBackgroundErrorWeakest',
Expand Down
3 changes: 3 additions & 0 deletions packages/paste-core/components/file-picker/src/FilePicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@ const FilePicker = React.forwardRef<HTMLInputElement, FilePickerProps>(
<label htmlFor={id}>
<SiblingBox
element={element}
width="100%"
display="flex"
justifyContent="start"
as="span"
type="file"
borderRadius="borderRadius30"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ const PaginationLabel = React.forwardRef<HTMLDivElement, PaginationLabelProps>(
color="colorTextWeak"
textAlign="center"
fontWeight="fontWeightNormal"
lineHeight="lineHeight50"
>
{children}
</Text>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const PaginationNumbers = React.forwardRef<HTMLUListElement, PaginationNumbersPr
justifyContent="center"
paddingLeft="space40"
paddingRight="space40"
paddingBottom="space30"
paddingBottom="space20"
width="100%"
>
{validChildren.map((child, index) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ const authors = ['James Baldwin', 'Adrienne Maree Brown', 'Octavia Butler', 'Ta-
const SampleEmptyState = () => (
<Box paddingY="space40" paddingX="space50">
<Text as="span" fontStyle="italic">
<Text as="span" fontStyle="italic" color="colorTextWeak">
No results found
</Text>
</Box>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function getFilteredItems(inputValue) {
const SampleEmptyState = () => (
<Box paddingY="space40" paddingX="space50">
<Text as="span" fontStyle="italic">
<Text as="span" fontStyle="italic" color="colorTextWeak">
No results found
</Text>
</Box>
Expand Down Expand Up @@ -456,7 +456,7 @@ function getFilteredItems(inputValue) {
const SampleEmptyState = () => (
<Box paddingY="space40" paddingX="space50">
<Text as="span" fontStyle="italic">
<Text as="span" fontStyle="italic" color="colorTextWeak">
No results found
</Text>
</Box>
Expand Down Expand Up @@ -501,7 +501,7 @@ function getFilteredItems(inputValue) {
const SampleEmptyState = () => (
<Box paddingY="space40" paddingX="space50">
<Text as="span" fontStyle="italic">
<Text as="span" fontStyle="italic" color="colorTextWeak">
No results found
</Text>
</Box>
Expand Down

0 comments on commit f267a9f

Please sign in to comment.