Code Monkey home page Code Monkey logo

Comments (4)

davidherney avatar davidherney commented on September 16, 2024

Hi...

the current tab has a specific css class: "active". You can set styles in your theme in order to make a different presentation. For example, change the font-bold or the tab size. It is not a bug, it is a plugin feature.

Do you recommend another behavior to it?

Saludos

from moodle-format_onetopic.

hkalant avatar hkalant commented on September 16, 2024

Thanks for your answer.

No, I think the behaviour is fine and it's very useful that it has the 'active' class.

However, it's not obvious to me, how I can customise that 'active' class with custom CSS only for a specific course, without having to change the global CSS of the whole theme.

What I'm trying to achieve is to customise the active tab only for one course, not all of our courses in Moodle.

If you can provide advice on this, that would be really helpful.

Many thanks,
Harry

from moodle-format_onetopic.

davidherney avatar davidherney commented on September 16, 2024

Hi @hkalant...
I am sorry but there is not way to custom it for a single course.

It is not a bug, I proceed to close the issue.

Saludos

from moodle-format_onetopic.

hkalant avatar hkalant commented on September 16, 2024

Hi @davidherney

No problem, feel free to close this.

But be aware of that: since you allow users to add text and color background to the tabs, if it's not obvious which tab is the 'active', since a user might choose the same color for all tabs, then that's a bug.

Because when users choose custom settings, which is something you allowed them to do in the first place, and that causes the course format to produce an incorrect or unexpected result (which is it doesn't highlight the 'active' tab in any way), then that's a definition of a software bug.

You might want to consider adding options like in the example below in future versions of the format:

one-topic-more-options

Best wishes,
Harry

from moodle-format_onetopic.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.