Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Hackday: Add responsive styling to Modal and Tab component #1015

Merged
merged 4 commits into from
Apr 19, 2024

Conversation

kbesingeryeh
Copy link
Contributor

No description provided.

@kbesingeryeh kbesingeryeh force-pushed the sc-49601/make-responsive-components branch from 720aae1 to 48f6b9f Compare April 19, 2024 17:35
@@ -263,8 +263,8 @@ export function getTabStyles() {
.pbPx(verticalPaddingPx - borderBottomWidthPx).$;

return {
baseStyles: Css.df.aic.hPx(32).pyPx(verticalPaddingPx).px1.outline0.gray700.add("width", "fit-content")
.cursorPointer.sm.$,
baseStyles: Css.df.aic.hPx(32).pyPx(verticalPaddingPx).px1.outline0.gray700.add("width", "fit-content").overflowAuto
Copy link
Contributor

Choose a reason for hiding this comment

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

request: Can you remove the overflowAuto from here and put it on the element that has the role="tablist" attribute?

Copy link
Contributor

Choose a reason for hiding this comment

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

Actually, I think we need to put that on the parent of the role="tablist" element. This is because we have that {right} property that we want within the scrollable container. We should also add a gap property to ensure we have some spacing between the Tab group and the right content.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

got it. make sense

@kbesingeryeh kbesingeryeh marked this pull request as ready for review April 19, 2024 18:00
.hPx(height).$
.hPx(height)
.if(sm)
.vh100.add("width", "100vw").$
Copy link
Contributor

@bdow bdow Apr 19, 2024

Choose a reason for hiding this comment

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

request Can you additionally add in maxh("none") and br0 when sm is true. This way it really does take up the full screen. Right now we still hit the maxh("90vh") and see rounded corners, which to me look odd for this. I think we might as well remove those and take up the full screen. Thanks!

Copy link
Contributor

@bdow bdow left a comment

Choose a reason for hiding this comment

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

Awesome!

@kbesingeryeh kbesingeryeh merged commit c330b5b into main Apr 19, 2024
6 checks passed
@kbesingeryeh kbesingeryeh deleted the sc-49601/make-responsive-components branch April 19, 2024 18:12
homebound-team-bot pushed a commit that referenced this pull request Apr 19, 2024
## [2.343.0](v2.342.0...v2.343.0) (2024-04-19)

### Features

* Hackday: Add responsive styling to Modal and Tab component ([#1015](#1015)) ([c330b5b](c330b5b))
@homebound-team-bot
Copy link

馃帀 This PR is included in version 2.343.0 馃帀

The release is available on:

Your semantic-release bot 馃摝馃殌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants