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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Component: @phase2/outline-core-breadcrumb #429

Open
wants to merge 17 commits into
base: next
Choose a base branch
from

Conversation

glitchgirl
Copy link
Contributor

@glitchgirl glitchgirl commented Jan 9, 2024

Description

Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.

Fixes # (issue)

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

  • Visual Testing
  • Automated Testing
  • Accessibility Testing

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

Summary by CodeRabbit

  • New Features

    • Added a pre-commit hook script for improved code quality checks.
    • Updated the development guide link in the README to direct users to the new component development documentation.
    • Introduced new icon designs in the deprecated icon library for enhanced visual appeal.
    • Added new styles for breadcrumb navigation components, including flexbox layout and accessibility improvements.
    • Introduced a ResizeController for dynamic breadcrumb rendering based on screen size.
    • Added a new story for the OutlineCoreBreadcrumb component demonstrating its usage.
  • Refactor

    • Updated various components and documentation with new CSS variables, formatting, and reorganized styles for consistency and improved readability.
  • Documentation

    • Updated README with the new link to the development guide.
    • Added documentation for the breadcrumb property in the breadcrumb component.

Copy link

changeset-bot bot commented Jan 9, 2024

⚠️ No Changeset found

Latest commit: b143475

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link

netlify bot commented Jan 9, 2024

Deploy Preview for outlinejs failed.

Name Link
🔨 Latest commit b143475
🔍 Latest deploy log https://app.netlify.com/sites/outlinejs/deploys/65d4c242f65db6000820b17e

Copy link

coderabbitai bot commented Jan 9, 2024

Walkthrough

These updates encompass a range of changes aimed at improving functionality, accessibility, and styling across components and documentation. The enhancements include the addition of a pre-commit script for lefthook, icon library updates, significant CSS adjustments for breadcrumb navigation, and documentation refinements. These changes are designed to enhance the development process, user interface design, and accessibility aspects for a more efficient and inclusive user experience.

Changes

File(s) Summary
.husky/pre-commit Introduced a script to check and run lefthook with specific parameters.
README.md Updated the link to the Outline development guide.
packages/components/@deprecated/outline-icon/src/libraries/library.system.ts Updated icon SVG paths and dimensions.
packages/components/outline-core-breadcrumb/src/outline-core-breadcrumb.css, .../outline-core-breadcrumb.lightdom.css Updated styles for breadcrumb navigation, including flexbox layout and link decorations.
packages/components/outline-core-breadcrumb/src/outline-core-breadcrumb.ts, .../resize-controller.ts Added imports and properties for styles and resize control; updated rendering method for screen size responsiveness.
packages/documentation/outline-storybook/config/storybook.main.css Reformatted CSS variables, adjusted font sizes, and line heights.
packages/documentation/outline-storybook/stories/components/outline-core-breadcrumb.stories.mdx Introduced a new story demonstrating the usage of OutlineCoreBreadcrumb component.
`, 'back': `` };

packages/components/outline-core-breadcrumb/src/outline-core-breadcrumb.css: ## Short summary

The changes in outline-core-breadcrumb.css involve significant alterations to the styling rules. The styles for lists (ol, ul) and list items (li) have been modified to use flexbox for layout and include spacing adjustments. Additionally, a new styling rule for breadcrumb separators has been added to address accessibility concerns. The anchor (a) styling has been updated to include focus and hover effects, and new classes .separator and .previous-link have been introduced.


packages/components/outline-core-breadcrumb/src/outline-core-breadcrumb.lightdom.css: This file introduces styles for breadcrumb navigation components, including list styling, flexbox layout, and link decorations.


packages/components/outline-core-breadcrumb/src/outline-core-breadcrumb.encapsulated.css: The new file outline-core-breadcrumb.encapsulated.css introduces styling rules for breadcrumb components, including list styling, flexbox layout, separator styling, link decorations, and focus styles.


packages/components/outline-core-breadcrumb/src/outline-core-breadcrumb.global.css: The new file outline-core-breadcrumb.global.css introduces styling rules for breadcrumbs and navigation elements. It defines the layout and appearance of ordered and unordered lists, list items, links, and separators within a breadcrumb component.


packages/components/outline-core-breadcrumb/src/outline-core-breadcrumb.ts: ## Short summary

  • Added imports for CSSResultGroup, css, and AdoptedStylesheets.
  • Added imports for globalStyles, encapsulatedStyles, and ResizeController.
  • Added a new property breadcrumb with a description.
  • Updated static styles assignment.
  • Added GlobalStylesheets and EncapsulatedStylesheets properties.
  • Added debug and resizeController properties.
  • Modified the render method to handle mobile view and clone elements.

packages/components/outline-core-breadcrumb/src/resize-controller.ts: This file introduces a ResizeController class that implements the ReactiveController interface. It provides functionality for observing and reacting to size changes of a host element, including debouncing the resize events and calculating breakpoints based on the element's width.


packages/documentation/outline-storybook/config/storybook.main.css: ## Short summary

The changes in the packages/documentation/outline-storybook/config/storybook.main.css file mainly involve the formatting and reorganization of CSS variables. The variables have been reformatted to have no spaces around the colons and have been grouped together with additional variables added for various shades of gray, blue, red, yellow, green, indigo, purple, and pink. Additionally, adjustments have been made to the font sizes and line heights, and some minor changes to the default styles for various HTML elements.


packages/documentation/outline-storybook/stories/components/outline-core-breadcrumb.stories.mdx: The file outline-core-breadcrumb.stories.mdx introduces a new story for the OutlineCoreBreadcrumb component. It provides a usage example of the component within a navigation context, demonstrating the rendering of a breadcrumb trail.


packages/components/outline-core-breadcrumb/docs/outline-core-breadcrumb.stories.mdx: This new file introduces a documentation story for the OutlineCoreBreadcrumb component, showcasing a breadcrumb navigation structure with sample links.

-->


Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>.
    • Generate unit-tests for this file.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit tests for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai generate interesting stats about this repository from git and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai read src/utils.ts and generate unit tests.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (invoked as PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger a review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai help to get help.

Additionally, you can add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

CodeRabbit Configration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • The JSON schema for the configuration file is available here.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/coderabbit-overrides.v2.json

CodeRabbit Discord Community

Join our Discord Community to get help, request features, and share feedback.

@glitchgirl glitchgirl marked this pull request as ready for review February 1, 2024 16:08
Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Review Status

Actionable comments generated: 8

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between a37a2af and 439181d.
Files ignored due to path filters (3)
  • package-lock.json is excluded by: !**/*.json
  • package.json is excluded by: !**/*.json
  • yarn.lock is excluded by: !**/*.lock
Files selected for processing (9)
  • .husky/pre-commit (1 hunks)
  • README.md (1 hunks)
  • packages/components/@deprecated/outline-icon/src/libraries/library.system.ts (1 hunks)
  • packages/components/outline-core-breadcrumb/src/outline-core-breadcrumb.css (1 hunks)
  • packages/components/outline-core-breadcrumb/src/outline-core-breadcrumb.lightdom.css (1 hunks)
  • packages/components/outline-core-breadcrumb/src/outline-core-breadcrumb.ts (2 hunks)
  • packages/components/outline-core-breadcrumb/src/resize-controller.ts (1 hunks)
  • packages/documentation/outline-storybook/config/storybook.main.css (3 hunks)
  • packages/documentation/outline-storybook/stories/components/outline-core-breadcrumb.stories.mdx (1 hunks)
Files skipped from review due to trivial changes (1)
  • packages/documentation/outline-storybook/config/storybook.main.css
Additional comments: 13
packages/documentation/outline-storybook/stories/components/outline-core-breadcrumb.stories.mdx (1)
  • 6-16: The configuration for hiding the canvas tab in Storybook is correctly implemented. This ensures that users focus on the documentation view for the breadcrumb component, which is likely more relevant for this kind of UI component.
packages/components/outline-core-breadcrumb/src/outline-core-breadcrumb.lightdom.css (2)
  • 3-18: The use of flexbox for layout in the breadcrumb component is a good choice for responsive design. The styling for ol and ul with list-style: none; and display: flex; ensures a clean layout without default list styling, which is appropriate for a breadcrumb component.
  • 31-43: The approach to use graphical elements (width, height, background, transform) for breadcrumb separators to address accessibility concerns is thoughtful and innovative. This ensures that screen readers do not read out the separator, improving the user experience for visually impaired users.
packages/components/outline-core-breadcrumb/src/outline-core-breadcrumb.css (2)
  • 3-18: The conversion to rem units for margin, padding, and gap properties in the breadcrumb component enhances scalability and maintainability of the styles. This is a good practice for responsive design.
  • 31-43: The solution for breadcrumb separators to avoid screen reader issues is consistently applied here as well. This consistency across stylesheets is good for maintainability.
.husky/pre-commit (1)
  • 3-5: The check for the LEFTHOOK environment variable allows for an easy bypass of the pre-commit hook if necessary. This can be useful for cases where the hook might be obstructing a commit that needs to be made urgently, though it should be used judiciously.
packages/components/outline-core-breadcrumb/src/outline-core-breadcrumb.ts (3)
  • 1-8: The imports and the use of AdoptedStyleSheets for styling are correctly implemented. This approach allows for more efficient style reuse and encapsulation, which is particularly beneficial for web components.
  • 30-37: The use of AdoptedStyleSheets within connectedCallback is innovative, but ensure that this approach is compatible with all target browsers, as AdoptedStyleSheets may not be supported everywhere.
  • 39-56: The implementation of responsive behavior using ResizeController and conditional rendering based on isMobile is a good practice for creating adaptive components. However, ensure that the logic for determining isMobile accurately reflects the intended breakpoints and usage scenarios.
packages/components/@deprecated/outline-icon/src/libraries/library.system.ts (1)
  • 46-47: Updating the SVG icons for 'home' and 'back' with new paths and dimensions is a good improvement for visual representation. Ensure that these new icons are tested across all platforms where they are used to confirm their appearance and functionality remain consistent.
README.md (1)
  • 72-72: Updating the link to the development guide in the README.md file helps ensure that contributors are directed to the most current information. This is a positive change for project documentation.
packages/components/outline-core-breadcrumb/src/resize-controller.ts (2)
  • 3-31: The implementation of a debounce function is a common utility that can be very useful in many scenarios, including handling resize events efficiently. This implementation looks correct and should help in reducing the number of resize events handled.
  • 42-187: The ResizeController class is well-structured and provides a robust way to handle element resizing with configurable breakpoints and debouncing. This should significantly enhance the responsiveness of components that use it. Ensure comprehensive testing, especially around the dynamic addition and removal of elements that might affect the resize logic.

import { html } from 'lit';
import { Meta, Canvas, Story } from '@storybook/addon-docs';

import { OutlineCoreBreadcrumb } from '../../../../../packages/components/outline-core-breadcrumb/src/outline-core-breadcrumb';
Copy link

@coderabbitai coderabbitai bot Feb 1, 2024

Choose a reason for hiding this comment

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

The import path for OutlineCoreBreadcrumb seems overly complex and potentially brittle. Consider simplifying the import path by configuring your build tool to support aliasing or by reorganizing the directory structure.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This will be updated once this is a package

Copy link

Choose a reason for hiding this comment

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

@glitchgirl: Understood, it's great to hear that there are plans to simplify the import paths once it becomes a package. If there's any support or assistance needed during this transition, feel free to let me know. Looking forward to seeing the updates!

Comment on lines 7 to 43
call_lefthook()
{
dir="$(git rev-parse --show-toplevel)"
osArch=$(uname | tr '[:upper:]' '[:lower:]')
cpuArch=$(uname -m | sed 's/aarch64/arm64/')

if lefthook -h >/dev/null 2>&1
then
lefthook "$@"
elif test -f "$dir/node_modules/lefthook/bin/index.js"
then
"$dir/node_modules/lefthook/bin/index.js" "$@"
elif test -f "$dir/node_modules/@evilmartians/lefthook/bin/lefthook_${osArch}_${cpuArch}/lefthook"
then
"$dir/node_modules/@evilmartians/lefthook/bin/lefthook_${osArch}_${cpuArch}/lefthook" "$@"
elif test -f "$dir/node_modules/@evilmartians/lefthook-installer/bin/lefthook_${osArch}_${cpuArch}/lefthook"
then
"$dir/node_modules/@evilmartians/lefthook-installer/bin/lefthook_${osArch}_${cpuArch}/lefthook" "$@"
elif bundle exec lefthook -h >/dev/null 2>&1
then
bundle exec lefthook "$@"
elif yarn lefthook -h >/dev/null 2>&1
then
yarn lefthook "$@"
elif pnpm lefthook -h >/dev/null 2>&1
then
pnpm lefthook "$@"
elif command -v npx >/dev/null 2>&1
then
npx @evilmartians/lefthook "$@"
elif swift package plugin lefthook >/dev/null 2>&1
then
swift package --disable-sandbox plugin lefthook "$@"
else
echo "Can't find lefthook in PATH"
fi
}
Copy link

@coderabbitai coderabbitai bot Feb 1, 2024

Choose a reason for hiding this comment

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

The script's approach to finding and executing lefthook from various possible locations (global, local node_modules, etc.) is comprehensive. However, consider adding a final else clause to exit with a non-zero status code if lefthook cannot be found, to prevent commits from proceeding without passing the hooks.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is for @himerus

Copy link

Choose a reason for hiding this comment

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

Seems like the humans are having a chat. I'll hop back into my burrow for now. If you need me again, just tag @coderabbitai in a new comment, and I'll come hopping out!

@@ -0,0 +1,188 @@
//THIS IS A TEMP FILE, REPLACE WITH OFER'S PACKAGE WHEN READY
Copy link

Choose a reason for hiding this comment

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

Acknowledging that this is a temporary file and will be replaced in the future is good for transparency. However, ensure that there is a tracking mechanism (e.g., an issue in the project's issue tracker) to replace this with Ofer's package when ready.

Would you like me to open a GitHub issue to track the replacement of this temporary file with Ofer's package?

@glitchgirl glitchgirl marked this pull request as draft February 6, 2024 14:16
@himerus himerus changed the title Issue/outline core breadcrumb Component: @phase2/outline-core-breadcrumb Feb 6, 2024
@himerus himerus added Type: Component Suggestion Use this label for any issue that is a recommendation for a specific type of component. Why: Increase standardization NEW PACKAGE A Pull Request that creates a new NPM package to be released. labels Feb 6, 2024
Copy link

socket-security bot commented Feb 20, 2024

No dependency changes detected. Learn more about Socket for GitHub ↗︎

👍 No dependency changes detected in pull request

@glitchgirl glitchgirl marked this pull request as ready for review February 20, 2024 15:16
Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Review Status

Actionable comments generated: 2

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between 439181d and b143475.
Files selected for processing (5)
  • packages/components/@deprecated/outline-icon/src/libraries/library.system.ts (1 hunks)
  • packages/components/outline-core-breadcrumb/docs/outline-core-breadcrumb.stories.mdx (1 hunks)
  • packages/components/outline-core-breadcrumb/src/outline-core-breadcrumb.encapsulated.css (1 hunks)
  • packages/components/outline-core-breadcrumb/src/outline-core-breadcrumb.global.css (1 hunks)
  • packages/components/outline-core-breadcrumb/src/outline-core-breadcrumb.ts (2 hunks)
Files skipped from review due to trivial changes (1)
  • packages/components/@deprecated/outline-icon/src/libraries/library.system.ts
Additional comments: 8
packages/components/outline-core-breadcrumb/docs/outline-core-breadcrumb.stories.mdx (3)
  • 1-3: The imports and usage of Meta, Canvas, and Story from @storybook/addon-docs are correctly implemented, ensuring that the documentation leverages Storybook's features effectively.
  • 6-16: The Meta configuration is well-defined, setting the title, component, and parameters to enhance the documentation experience. The decision to hide the canvas view by default (hidden: true) focuses the user on the documentation, which is a thoughtful touch for components where code examples and explanations are more critical than visual previews.
  • 20-37: The breadcrumb example provided uses semantic HTML (nav and ul elements) and correctly sets aria-label and aria-current attributes, enhancing accessibility. This example serves as a good practice for developers looking to implement the breadcrumb component in their projects.
packages/components/outline-core-breadcrumb/src/outline-core-breadcrumb.global.css (2)
  • 1-16: The CSS for lists and list items is correctly using flex to create a horizontal layout, which is a common design pattern for breadcrumbs. The use of list-style: none; on both ol and ul elements, as well as on li elements, ensures that default list styling does not interfere with the custom breadcrumb design.
  • 29-41: The approach to creating a breadcrumb separator using CSS properties (width, height, background, transform) instead of textual content is innovative and addresses accessibility concerns by preventing screen readers from reading the separator as content. This is a commendable practice for improving accessibility.
packages/components/outline-core-breadcrumb/src/outline-core-breadcrumb.encapsulated.css (1)
  • 1-71: The encapsulated CSS for the breadcrumb component is consistent with the global CSS, with adjustments to margins, paddings, and the separator to suit a more compact layout. This demonstrates a thoughtful approach to styling, considering different contexts where the breadcrumb might be used. The use of relative units (rem) for margins and paddings ensures scalability and consistency across different screen sizes and resolutions.
packages/components/outline-core-breadcrumb/src/outline-core-breadcrumb.ts (2)
  • 1-9: The imports are correctly organized and include necessary elements from lit and other libraries. The use of AdoptedStylesheets for style encapsulation and ResizeController for responsive design demonstrates an advanced understanding of Lit and custom web component development.
  • 44-57: The updated render method introduces a responsive design approach by using ResizeController to determine if the component is in a mobile view and adjusting the displayed content accordingly. This is a commendable implementation for enhancing user experience across different devices. However, ensure thorough testing across various breakpoints to confirm the responsiveness behaves as expected.

Comment on lines +43 to +61
a {
text-decoration: none;
display: inline-flex;
align-items: center;

padding: 10px;
margin: 10px;

&:hover {
text-decoration: underline;
}
&:focus,
&:focus-visible {
outline: solid 3px blue;
border-radius: var(--border-radius-button-default);
outline-offset: var(--spacing-px);

}
}
Copy link

Choose a reason for hiding this comment

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

The styling for links (a elements) includes focus and hover states, which are crucial for accessibility and user experience. The use of outline on focus and text-decoration on hover follows best practices for indicating interactive elements. However, the choice of blue for the outline color might not meet contrast requirements against all backgrounds. Consider using a color that passes WCAG contrast ratio guidelines.

-    outline: solid 3px blue;
+    outline: solid 3px var(--outline-focus-color);

Ensure --outline-focus-color is defined in a global stylesheet or within this component's styles to meet accessibility contrast requirements.


Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation.

Suggested change
a {
text-decoration: none;
display: inline-flex;
align-items: center;
padding: 10px;
margin: 10px;
&:hover {
text-decoration: underline;
}
&:focus,
&:focus-visible {
outline: solid 3px blue;
border-radius: var(--border-radius-button-default);
outline-offset: var(--spacing-px);
}
}
a {
text-decoration: none;
display: inline-flex;
align-items: center;
padding: 10px;
margin: 10px;
&:hover {
text-decoration: underline;
}
&:focus,
&:focus-visible {
outline: solid 3px var(--outline-focus-color);
border-radius: var(--border-radius-button-default);
outline-offset: var(--spacing-px);
}
}

Comment on lines +31 to +41
static styles: CSSResultGroup = [componentStyles, componentStyles, css``];
GlobalStylesheets: AdoptedStylesheets | undefined = new AdoptedStylesheets(
this,
globalStyles
);
EncapsulatedStylesheets: AdoptedStylesheets | undefined;
// THIS NEEDS TO BE HERE FOR STORYBOOK TO WORK
debug = false;
resizeController = new ResizeController(this, {
breakpoints: [768, 1440],
});
Copy link

Choose a reason for hiding this comment

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

The implementation of GlobalStylesheets and EncapsulatedStylesheets using AdoptedStylesheets is a sophisticated approach to manage styles in a Lit component. However, there's a duplication in the assignment of componentStyles to static styles. This should be corrected to include both global and encapsulated styles.

-  static styles: CSSResultGroup = [componentStyles, componentStyles, css``];
+  static styles: CSSResultGroup = [globalStyles, encapsulatedStyles, css``];

Ensure that globalStyles and encapsulatedStyles are correctly imported and applied to the component to achieve the intended styling.


Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation.

Suggested change
static styles: CSSResultGroup = [componentStyles, componentStyles, css``];
GlobalStylesheets: AdoptedStylesheets | undefined = new AdoptedStylesheets(
this,
globalStyles
);
EncapsulatedStylesheets: AdoptedStylesheets | undefined;
// THIS NEEDS TO BE HERE FOR STORYBOOK TO WORK
debug = false;
resizeController = new ResizeController(this, {
breakpoints: [768, 1440],
});
static styles: CSSResultGroup = [globalStyles, encapsulatedStyles, css``];
GlobalStylesheets: AdoptedStylesheets | undefined = new AdoptedStylesheets(
this,
globalStyles
);
EncapsulatedStylesheets: AdoptedStylesheets | undefined;
// THIS NEEDS TO BE HERE FOR STORYBOOK TO WORK
debug = false;
resizeController = new ResizeController(this, {
breakpoints: [768, 1440],
});

@himerus himerus self-requested a review February 27, 2024 14:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
NEW PACKAGE A Pull Request that creates a new NPM package to be released. Type: Component Suggestion Use this label for any issue that is a recommendation for a specific type of component. Why: Increase standardization
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants