-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prefix all component classes with
.Hyp-
Currently, the SASS entrypoint for this package generates all styles for all shared components. While we may wish to adapt that piece of the puzzle at some point to give more granular control, some protection is needed in the short term at the very least to protect against CSS conflicts for generically-named components like `Panel`, `Modal`, `Dialog`, etc., for applications that use this package but might not yet actually use those individual components (i.e. have implementations of their own at present). Utility and pattern classes (which are not currently part of the public API but will and may be, respectively) are already prefixed with `.hyp-`. Adhering to the same general naming principle, these changes add a `.Hyp-` prefix to all component classes, resulting in, e.g. `.Hyp-Panel`. Use of these classes is currently an internal concern only, so these changes should have no effect for consuming applications. Customization of common component styling, such as it has been done thus far, uses mixins and doesn't directly reference class names. This change should also make it easier to spot whether a component is common or local to the application.
- Loading branch information
1 parent
7d6bfe7
commit cd20731
Showing
15 changed files
with
56 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
@use '../mixins/patterns/organisms'; | ||
|
||
.Dialog { | ||
.Hyp-Dialog { | ||
@include organisms.panel; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
@use '../mixins/layout'; | ||
@use '../mixins/patterns/molecules'; | ||
|
||
.Modal__overlay { | ||
.Hyp-Modal__overlay { | ||
@include layout.overlay; | ||
} | ||
|
||
.Modal { | ||
.Hyp-Modal { | ||
@include molecules.modal; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
@use '../mixins/patterns/organisms'; | ||
|
||
.Panel { | ||
.Hyp-Panel { | ||
@include organisms.panel; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
@use 'mixins'; | ||
|
||
// A button with text, and optionally an icon | ||
.LabeledButton { | ||
.Hyp-LabeledButton { | ||
@include mixins.LabeledButton; | ||
} | ||
|
||
// A button with only an icon and no label/text | ||
.IconButton { | ||
.Hyp-IconButton { | ||
@include mixins.IconButton; | ||
} | ||
|
||
// A button styled to appear as a link, with underline on hover | ||
.LinkButton { | ||
.Hyp-LinkButton { | ||
@include mixins.LinkButton; | ||
} |