Comments (3)
@DavideMininni-Fincons Could I ask you to take a look at https://angular.app.sbb.ch/angular/components/accordion/overview and write a specification along that use case? I apologize for only mentioning this now.
from lyne-components.
Check both sbb-accordion and sbb-accordion-item
sbb-accordion-item
- Icon at left:
@Prop() public iconName?: string;
- Title: can we use
@Prop() public titleContent?: string;
&@Prop() public titleLevel?: InterfaceTitleAttributes['level’];
? - Toggle:
chevron-small-up
/down
icon instead than current SVG? - Add a disableAnimation property
- Events: willOpen/didOpen/willClose/didClose ?
- Reuse SbbOverlayState ?
- Two variants (default/milk)?
- What state is 'Opacity 80%'?
- Animation?
sbb-accordion
- Keep the onlyOneOpen logic?
from lyne-components.
sbb-accordion-item (or sbb-expansion-panel ?)
Slots:
- ‘content’ for the elements which became visibile when expanded
- unnamed slot for title? or use @props titleContent / titleLevel ?
Props:
- two color background variant (see sbb-selection-panel):
@Prop() public color: 'white' | 'milk' = 'white';
- icon at left:
@Prop() public iconName?: string;
- add a prop to disable open/close animation:
@Prop({ reflect: true }) public disableAnimation = false;
- Toggle:
- can the
chevron-small-up
/chevron-small-down
icons can be used instead than the current SVG? - can we hide the toggle as in the Angular SBB lib? If yes, add
@Prop() hideToggle = false;
- can the
- force the opening of the panel with
@Prop({ reflect: true }) public forceOpen = false;
States:
- toggling the panel can be disabled with
@Prop() disabled = false;
- which state is 'opacity 80%' in Figma?
Events:
- combination of did/will & open/close as in many other components
Questions:
- can accordion-items be nested?
- iconName is mandatory?
Example with titleContent
<sbb-accordion-item titleContent='This is the title'>
<div slot="content">Lorem ipsum dolor sit amet.</div>
</sbb-accordion-item>
Example with slotted title and icon
<sbb-accordion-item icon-name='pie-small'>
<div>Title</div>
<div slot="content">Lorem ipsum dolor sit amet.</div>
</sbb-accordion-item>
sbb-accordion
Slots:
- unnamed slot for one or more sbb-accordion-items
Prop:
- allows for more than one expanded sbb-accordion-item at the same time:
@Prop() multi = false;
Example
<sbb-accordion multi>
<sbb-accordion-item titleContent='This is the title'>
<div slot="content">Lorem ipsum dolor sit amet.</div>
</sbb-accordion-item>
<sbb-accordion-item titleContent='This is another title'>
<div slot="content">Amet sit dolor ipsum lorem.</div>
</sbb-accordion-item>
</sbb-accordion>
from lyne-components.
Related Issues (20)
- story: completely remove Chromatic logic
- story(sbb-compact-paginator): variant implementation
- story(sbb-paginator): disabling paginator
- story(sbb-select): implement native form support
- [Bug]: Layout flashes dialogue when resizing the browser window
- [Improvement]: Reduce gap in pearl-chain to 2px
- [Feature request]: Transition of the sticky bar when triggered by an action
- [Feature request]: StickyBar animation FadeIn and FadeOut
- [Feature request]: keep already set tabindex on buttons HOT 2
- AI generated Chip
- [Bug]: Sticky Header covers Map Zoom Icons on Mobile
- story(sbb-header): removal of logo slot
- bug(sbb-select): switching `multiple` property doesn't work reliable
- header action with current state
- [Bug]: Error message is not output by screenreader HOT 2
- [Bug]: Info-tooltip in the input field cannot be activated with the Screenrader HOT 1
- [Bug]: 1.11.0: No matching version found for @lit-labs/observers@^3.0.0OBSERVERS HOT 3
- [Bug]: Disabled Button is not Focusable in Dialog Action part
- [Bug]: Disabled SbbRadioButtonPanel is default focusable
- [Bug]: Button is above popup but has no z-index HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lyne-components.