• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

economist-components / component-accordion / 181
100%

Build:
DEFAULT BRANCH: master
Ran 26 May 2016 01:40PM UTC
Jobs 2
Files 2
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
181

Pull #135

travis-ci

keithamus
feat: hugely simplify the usage of the accordion

Rather than using the `list` prop to provide a set of links, this now uses `Panel`s which can
provide arbitrary HTML to hide and show.

BREAKING CHANGE:

This is a huge breaking change, it has been redeveloped from the ground up, but some changes are:

 - The `list` prop is no longer present. Instead, generate your own HTML inside a `Panel`.
   For example:

   ### Old
   ```
   import React from 'react';
   import Accordion from '@economist/component-accordion';
   export default (
     <Accordion list={[
       {
         title: 'Sections',
         children: [
           {
             title: 'Latest Updates',
             href: '/latest-updates'
           }
         ]
       },
       {
         title: 'Blogs',
         children: [
           {
             title: 'Buttonwood\'s notebook',
             href: '/blogs/buttonwood',
           }
         ]
       },
     ]} />
   );
   ```

   ### New
   ```
   import React from 'react';
   import { Accordion, Panel } from '@economist/component-accordion';
   export default (
     <Accordion>
       <Panel header="Sections">
         <ul>
           <li><a href="/latest-updates">Latest Updates</a></li>
         </ul>
       </Panel>
       <Panel header="Blogs">
         <ul>
           <li><a href="/blogs/buttonwood">Buttonwoods notebook</a></li>
         </ul>
       </Panel>
     </Accordion>
   );
   ```

 - All Economist specific CSS has been removed. The current CSS only provides simple
   "functional styling" such as `display: none` and `display: block`.
Pull Request #135: Refactor to be slot based

26 of 26 new or added lines in 2 files covered. (100.0%)

30 of 30 relevant lines covered (100.0%)

40.53 hits per line

Jobs
ID Job ID Ran Files Coverage
1 181.1 26 May 2016 01:42PM UTC 0
100.0
Travis Job 181.1
2 181.2 26 May 2016 01:40PM UTC 0
100.0
Travis Job 181.2
Source Files on build 181
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #181
  • Pull Request #135
  • PR Base - master (#164)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc