This repository was archived by the owner on Mar 9, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed
components/learn/syllabus-tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -34,14 +34,15 @@ export default class SyllabusTree extends React.Component {
3434 font-size: 0.85rem;
3535 user-select: none;
3636 border-left: 2px solid #fff;
37+ color: #888;
3738 :hover {
3839 background-color: #f5f5f5;
3940 border-left: 2px solid #374355;
4041 cursor: pointer;
4142 }
4243 }
4344
44- & .chapter- active {
45+ & .active {
4546 color: #374355;
4647 background-color: #f5f5f5;
4748 border-left: 2px solid #374355;
@@ -75,9 +76,7 @@ export default class SyllabusTree extends React.Component {
7576 onClick = { ( ) => this . handleClick ( i ) } >
7677 { unitNode . chapters . map ( chapter => (
7778 < div
78- className = { `chapter ${
79- this . state . activeChapter === chapter . url ? 'chapter-active' : 'chapter-inactive'
80- } `}
79+ className = { `chapter ${ this . state . activeChapter === chapter . url ? 'active' : '' } ` }
8180 key = { chapter . url }
8281 onClick = { ( ) => this . clickOnChapter ( chapter , unitNode . unit . name ) } >
8382 { chapter . name }
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import { space } from 'styled-system';
66import Layout from '../../components/common/layout' ;
77import BannerSection from '../../components/common/banner' ;
88import SubjectCard from '../../components/learn/subject-card' ;
9- import { baseContainer , graySecondary } from '../../utils/base.styles' ;
9+ import { baseContainer } from '../../utils/base.styles' ;
1010import { listOfSubjects } from '../../utils/mock-data' ;
1111
1212const LearnSection = styled . section `
@@ -17,7 +17,6 @@ const LearnSection = styled.section`
1717
1818const FilterContainer = styled . div `
1919 ${ space } ;
20- border-bottom: 1px solid ${ graySecondary } ;
2120 & .title_filter {
2221 text-align: center;
2322 }
You can’t perform that action at this time.
0 commit comments