Skip to content
This repository was archived by the owner on Mar 9, 2021. It is now read-only.

Commit 4e1e378

Browse files
author
z
committed
changes as per #114 (comment)
1 parent 9dd448c commit 4e1e378

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

components/learn/syllabus-tree/syllabus-tree-container.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff 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}

pages/learn/index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { space } from 'styled-system';
66
import Layout from '../../components/common/layout';
77
import BannerSection from '../../components/common/banner';
88
import SubjectCard from '../../components/learn/subject-card';
9-
import { baseContainer, graySecondary } from '../../utils/base.styles';
9+
import { baseContainer } from '../../utils/base.styles';
1010
import { listOfSubjects } from '../../utils/mock-data';
1111

1212
const LearnSection = styled.section`
@@ -17,7 +17,6 @@ const LearnSection = styled.section`
1717

1818
const FilterContainer = styled.div`
1919
${space};
20-
border-bottom: 1px solid ${graySecondary};
2120
& .title_filter {
2221
text-align: center;
2322
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy