-
Notifications
You must be signed in to change notification settings - Fork 5
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
Release/v15 #160
Release/v15 #160
Conversation
Removes multiple props, the media container pattern, and simplifies markup BREAKING CHANGE: API has drastically changed as well as underlying markup of the component
Img refactor
Fluid presets
ACS-3918 - v15 modal teleport
…ndingLead to top-level
Refactoring style and lead
@@ -0,0 +1,50 @@ | |||
<script setup lang="ts"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't realize we were including this in v15?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not exported. Leaving it in for further experimentation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the idea is we are not speaking about it
@@ -2,12 +2,7 @@ html { | |||
-webkit-box-sizing: border-box; | |||
box-sizing: border-box; | |||
font-family: sans-serif; | |||
font-size: 10px; /* update postcss.config.js pxtorem if this changes */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also some future thoughts https://www.youtube.com/watch?v=cCAtD_BAHNw
</component> | ||
</template> | ||
|
||
<style lang="scss" module src="./styles/CdrAbstract.module.scss"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will these also be available in our component variables project?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, not at this time. We'd have to figure out providing/exporting the fluid scale to that project
@import '../../../styles/settings/index.scss'; | ||
@import '../../../styles/settings/fluid.vars.scss'; | ||
|
||
.cdr-abstract { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the tag itself could have a few additional styles I should think
or maybe this is just a global p tag reset
like
max-width: 75ch;
text-wrap: pretty;
@@ -0,0 +1,50 @@ | |||
<script setup lang="ts"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the idea is we are not speaking about it
default: '', | ||
}, | ||
/** | ||
* Aspect ratio of the media container |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
@import '../../../styles/settings/index.scss'; | ||
@import '../../../styles/settings/fluid.vars.scss'; | ||
|
||
.cdr-kicker { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
text-wrap: nowrap
?
@import '../../../styles/settings/index.scss'; | ||
@import '../../text/presets/styles/CdrHeadingDisplay.module.scss'; | ||
@import '../../text/presets/styles/CdrSubheadingSans.module.scss'; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lets give our headings and titles
text-wrap: balance;
:class="[style['cdr-modal__overlay'], overlayClass]" | ||
/> | ||
<!-- This div (and the one below) is used to avoid a screen reader "keyboard" trap where the | ||
<Teleport to="body"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we need a note for why teleport? I mean I guess its just native Vue...
describe('CdrPicture', () => { | ||
it('matches snapshot', () => { | ||
const wrapper = shallowMount(CdrPicture, { | ||
props: { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thoughts on how palette could change the image source? Atlassian has and interesting take
https://atlassian.design/components/image/examples#dark-mode
@@ -0,0 +1,8 @@ | |||
@import './CdrPresets.module.scss'; | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lets add
text-wrap: balance;
to our headings
@@ -2,6 +2,5 @@ | |||
@import './vars/CdrText.vars.scss'; | |||
|
|||
.cdr-text { | |||
@include cdr-text-default; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
vestigial
@@ -38,6 +38,14 @@ body { | |||
background-color: #ffffff; | |||
} | |||
|
|||
h1,h2,h3,h4,h5,h6 { | |||
text-wrap: balance; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💯
text-wrap: balance; | ||
} | ||
|
||
p { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🥇
Release branch for 15.0.0. Individual features should PR against this branch.