Skip to content

Commit

Permalink
fix: set default breakpoint without computing (#1821)
Browse files Browse the repository at this point in the history
Co-authored-by: rzpcibot <tools+cibot@razorpay.com>
  • Loading branch information
kamleshchandnani and rzpcibot authored Nov 23, 2023
1 parent 00aa407 commit 9967cd9
Show file tree
Hide file tree
Showing 16 changed files with 109 additions and 100 deletions.
5 changes: 5 additions & 0 deletions .changeset/pretty-feet-rule.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@razorpay/blade": patch
---

fix: set default breakpoint without computing
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ exports[`Carousel Snapshots should not render overlay on mobile devices 1`] = `
class=" c4"
data-blade-component="base-box"
data-slide-index="0"
id="carousel-39-carousel-item-0"
id="carousel-52-carousel-item-0"
role="tabpanel"
>
<div>
Expand All @@ -307,7 +307,7 @@ exports[`Carousel Snapshots should not render overlay on mobile devices 1`] = `
class=" c4"
data-blade-component="base-box"
data-slide-index="1"
id="carousel-39-carousel-item-1"
id="carousel-52-carousel-item-1"
role="tabpanel"
>
<div>
Expand Down Expand Up @@ -358,15 +358,15 @@ exports[`Carousel Snapshots should not render overlay on mobile devices 1`] = `
role="tablist"
>
<button
aria-controls="carousel-39-carousel-item-0"
aria-controls="carousel-52-carousel-item-0"
aria-label="Slide 1"
aria-selected="true"
class="c9"
data-blade-component="carousel-indicator-button"
role="tab"
/>
<button
aria-controls="carousel-39-carousel-item-1"
aria-controls="carousel-52-carousel-item-1"
aria-label="Slide 2"
aria-selected="false"
class="c10"
Expand Down Expand Up @@ -652,7 +652,7 @@ exports[`Carousel Snapshots should render 1`] = `
class=" c4"
data-blade-component="base-box"
data-slide-index="0"
id="carousel-34-carousel-item-0"
id="carousel-42-carousel-item-0"
role="tabpanel"
>
<div>
Expand All @@ -669,7 +669,7 @@ exports[`Carousel Snapshots should render 1`] = `
class=" c4"
data-blade-component="base-box"
data-slide-index="1"
id="carousel-34-carousel-item-1"
id="carousel-42-carousel-item-1"
role="tabpanel"
>
<div>
Expand Down Expand Up @@ -716,15 +716,15 @@ exports[`Carousel Snapshots should render 1`] = `
role="tablist"
>
<button
aria-controls="carousel-34-carousel-item-0"
aria-controls="carousel-42-carousel-item-0"
aria-label="Slide 1"
aria-selected="true"
class="c8"
data-blade-component="carousel-indicator-button"
role="tab"
/>
<button
aria-controls="carousel-34-carousel-item-1"
aria-controls="carousel-42-carousel-item-1"
aria-label="Slide 2"
aria-selected="false"
class="c9"
Expand Down Expand Up @@ -1024,7 +1024,7 @@ exports[`Carousel Snapshots should render with navigationButtonPosition=side 1`]
class=" c5"
data-blade-component="base-box"
data-slide-index="0"
id="carousel-38-carousel-item-0"
id="carousel-50-carousel-item-0"
role="tabpanel"
>
<div>
Expand All @@ -1041,7 +1041,7 @@ exports[`Carousel Snapshots should render with navigationButtonPosition=side 1`]
class=" c5"
data-blade-component="base-box"
data-slide-index="1"
id="carousel-38-carousel-item-1"
id="carousel-50-carousel-item-1"
role="tabpanel"
>
<div>
Expand Down Expand Up @@ -1088,15 +1088,15 @@ exports[`Carousel Snapshots should render with navigationButtonPosition=side 1`]
role="tablist"
>
<button
aria-controls="carousel-38-carousel-item-0"
aria-controls="carousel-50-carousel-item-0"
aria-label="Slide 1"
aria-selected="true"
class="c8"
data-blade-component="carousel-indicator-button"
role="tab"
/>
<button
aria-controls="carousel-38-carousel-item-1"
aria-controls="carousel-50-carousel-item-1"
aria-label="Slide 2"
aria-selected="false"
class="c9"
Expand Down Expand Up @@ -1373,7 +1373,7 @@ exports[`Carousel Snapshots should render with shouldAddStartEndSpacing 1`] = `
class="c4 c5"
data-blade-component="base-box"
data-slide-index="0"
id="carousel-36-carousel-item-0"
id="carousel-46-carousel-item-0"
role="tabpanel"
>
<div>
Expand All @@ -1390,7 +1390,7 @@ exports[`Carousel Snapshots should render with shouldAddStartEndSpacing 1`] = `
class="c4 c5"
data-blade-component="base-box"
data-slide-index="1"
id="carousel-36-carousel-item-1"
id="carousel-46-carousel-item-1"
role="tabpanel"
>
<div>
Expand All @@ -1407,7 +1407,7 @@ exports[`Carousel Snapshots should render with shouldAddStartEndSpacing 1`] = `
class="c4 c5"
data-blade-component="base-box"
data-slide-index="2"
id="carousel-36-carousel-item-2"
id="carousel-46-carousel-item-2"
role="tabpanel"
>
<div>
Expand Down Expand Up @@ -1458,23 +1458,23 @@ exports[`Carousel Snapshots should render with shouldAddStartEndSpacing 1`] = `
role="tablist"
>
<button
aria-controls="carousel-36-carousel-item-0"
aria-controls="carousel-46-carousel-item-0"
aria-label="Slide 1"
aria-selected="true"
class="c10"
data-blade-component="carousel-indicator-button"
role="tab"
/>
<button
aria-controls="carousel-36-carousel-item-1"
aria-controls="carousel-46-carousel-item-1"
aria-label="Slide 2"
aria-selected="false"
class="c11"
data-blade-component="carousel-indicator-button"
role="tab"
/>
<button
aria-controls="carousel-36-carousel-item-2"
aria-controls="carousel-46-carousel-item-2"
aria-label="Slide 3"
aria-selected="false"
class="c11"
Expand Down Expand Up @@ -1800,7 +1800,7 @@ exports[`Carousel Snapshots should render with showOverlay 1`] = `
class=" c4"
data-blade-component="base-box"
data-slide-index="0"
id="carousel-37-carousel-item-0"
id="carousel-48-carousel-item-0"
role="tabpanel"
>
<div>
Expand All @@ -1817,7 +1817,7 @@ exports[`Carousel Snapshots should render with showOverlay 1`] = `
class=" c4"
data-blade-component="base-box"
data-slide-index="1"
id="carousel-37-carousel-item-1"
id="carousel-48-carousel-item-1"
role="tabpanel"
>
<div>
Expand All @@ -1834,7 +1834,7 @@ exports[`Carousel Snapshots should render with showOverlay 1`] = `
class=" c4"
data-blade-component="base-box"
data-slide-index="2"
id="carousel-37-carousel-item-2"
id="carousel-48-carousel-item-2"
role="tabpanel"
>
<div>
Expand Down Expand Up @@ -1885,23 +1885,23 @@ exports[`Carousel Snapshots should render with showOverlay 1`] = `
role="tablist"
>
<button
aria-controls="carousel-37-carousel-item-0"
aria-controls="carousel-48-carousel-item-0"
aria-label="Slide 1"
aria-selected="true"
class="c9"
data-blade-component="carousel-indicator-button"
role="tab"
/>
<button
aria-controls="carousel-37-carousel-item-1"
aria-controls="carousel-48-carousel-item-1"
aria-label="Slide 2"
aria-selected="false"
class="c10"
data-blade-component="carousel-indicator-button"
role="tab"
/>
<button
aria-controls="carousel-37-carousel-item-2"
aria-controls="carousel-48-carousel-item-2"
aria-label="Slide 3"
aria-selected="false"
class="c10"
Expand Down Expand Up @@ -2187,7 +2187,7 @@ exports[`Carousel Snapshots should render with visibleItems 1`] = `
class=" c4"
data-blade-component="base-box"
data-slide-index="0"
id="carousel-35-carousel-item-0"
id="carousel-44-carousel-item-0"
role="tabpanel"
>
<div>
Expand All @@ -2204,7 +2204,7 @@ exports[`Carousel Snapshots should render with visibleItems 1`] = `
class=" c4"
data-blade-component="base-box"
data-slide-index="1"
id="carousel-35-carousel-item-1"
id="carousel-44-carousel-item-1"
role="tabpanel"
>
<div>
Expand All @@ -2221,7 +2221,7 @@ exports[`Carousel Snapshots should render with visibleItems 1`] = `
class=" c4"
data-blade-component="base-box"
data-slide-index="2"
id="carousel-35-carousel-item-2"
id="carousel-44-carousel-item-2"
role="tabpanel"
>
<div>
Expand Down Expand Up @@ -2268,15 +2268,15 @@ exports[`Carousel Snapshots should render with visibleItems 1`] = `
role="tablist"
>
<button
aria-controls="carousel-35-carousel-item-0"
aria-controls="carousel-44-carousel-item-0"
aria-label="Slide 1"
aria-selected="true"
class="c8"
data-blade-component="carousel-indicator-button"
role="tab"
/>
<button
aria-controls="carousel-35-carousel-item-2"
aria-controls="carousel-44-carousel-item-2"
aria-label="Slide 3"
aria-selected="false"
class="c9"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ exports[`<Chip /> should prioritize Chip's isDisabled prop instead of ChipGroup
}
>
<View
accessibilityLabelledBy="chip-group-31-label"
accessibilityLabelledBy="chip-group-47-label"
accessibilityRole="radiogroup"
accessible={true}
data-blade-component="chip-group"
Expand Down Expand Up @@ -141,7 +141,7 @@ exports[`<Chip /> should prioritize Chip's isDisabled prop instead of ChipGroup
}
>
<View
accessibilityDescribedBy="radio-32-helptext-33"
accessibilityDescribedBy="radio-48-helptext-49"
accessibilityInvalid={false}
accessibilityRequired={false}
accessibilityRole="radio"
Expand Down Expand Up @@ -347,7 +347,7 @@ exports[`<Chip /> should prioritize Chip's isDisabled prop instead of ChipGroup
}
>
<View
accessibilityDescribedBy="radio-34-helptext-35"
accessibilityDescribedBy="radio-50-helptext-51"
accessibilityInvalid={false}
accessibilityRequired={false}
accessibilityRole="radio"
Expand Down Expand Up @@ -1800,7 +1800,7 @@ exports[`<Chip /> should set disabled state with isDisabled 1`] = `
}
>
<View
accessibilityLabelledBy="chip-group-26-label"
accessibilityLabelledBy="chip-group-38-label"
accessibilityRole="radiogroup"
accessible={true}
data-blade-component="chip-group"
Expand Down Expand Up @@ -1924,7 +1924,7 @@ exports[`<Chip /> should set disabled state with isDisabled 1`] = `
}
>
<View
accessibilityDescribedBy="radio-27-helptext-28"
accessibilityDescribedBy="radio-39-helptext-40"
accessibilityInvalid={false}
accessibilityRequired={false}
accessibilityRole="radio"
Expand Down Expand Up @@ -2130,7 +2130,7 @@ exports[`<Chip /> should set disabled state with isDisabled 1`] = `
}
>
<View
accessibilityDescribedBy="radio-29-helptext-30"
accessibilityDescribedBy="radio-41-helptext-42"
accessibilityInvalid={false}
accessibilityRequired={false}
accessibilityRole="radio"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1329,7 +1329,7 @@ exports[`<Chip /> should set disabled state with isDisabled 1`] = `
data-blade-component="base-box"
>
<div
aria-labelledby="chip-group-26-label"
aria-labelledby="chip-group-38-label"
class="c0"
data-blade-component="chip-group"
role="radiogroup"
Expand Down Expand Up @@ -1376,7 +1376,7 @@ exports[`<Chip /> should set disabled state with isDisabled 1`] = `
>
<input
aria-checked="false"
aria-describedby="radio-27-helptext-28"
aria-describedby="radio-39-helptext-40"
aria-disabled="true"
aria-invalid="false"
aria-required="false"
Expand Down Expand Up @@ -1430,7 +1430,7 @@ exports[`<Chip /> should set disabled state with isDisabled 1`] = `
>
<input
aria-checked="false"
aria-describedby="radio-29-helptext-30"
aria-describedby="radio-41-helptext-42"
aria-disabled="false"
aria-invalid="false"
aria-required="false"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ exports[`<ChipGroup /> selectionType="multiple" should render with selectionType
}
>
<View
accessibilityLabelledBy="chip-group-104-label"
accessibilityLabelledBy="chip-group-180-label"
accessible={true}
data-blade-component="chip-group"
display="flex"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ exports[`<ChipGroup /> selectionType="multiple" should render with selectionType
data-blade-component="base-box"
>
<div
aria-labelledby="chip-group-104-label"
aria-labelledby="chip-group-180-label"
class="c0"
data-blade-component="chip-group"
role="group"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,7 @@ exports[`<BaseInput /> should render with icons 1`] = `
data-blade-component="styled-base-input"
editable={true}
hasTags={false}
id="name-31-input-32"
id="name-49-input-50"
isFocused={false}
isTextArea={false}
keyboardType="default"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -673,7 +673,7 @@ exports[`<BaseInput /> should render with icons 1`] = `
>
<label
data-blade-component="form-label"
for="name-31-input-32"
for="name-49-input-50"
style="width: auto; flex-shrink: 0; margin-right: 16px;"
>
<div
Expand Down Expand Up @@ -748,7 +748,7 @@ exports[`<BaseInput /> should render with icons 1`] = `
aria-required="false"
class="c10"
data-blade-component="styled-base-input"
id="name-31-input-32"
id="name-49-input-50"
placeholder="First Last"
type="text"
value=""
Expand Down
Loading

0 comments on commit 9967cd9

Please sign in to comment.