Skip to content

fix: update default title and improve styling#25

Merged
djoseph-apphelix merged 2 commits intomainfrom
fix/gamexblock
Jan 23, 2026
Merged

fix: update default title and improve styling#25
djoseph-apphelix merged 2 commits intomainfrom
fix/gamexblock

Conversation

@djoseph-apphelix
Copy link
Member

Description

  • Changes the default flashcards XBlock title from the matching title to the flashcards title.
  • Updates flashcard title styles to improve emphasis, alignment, and consistency.

Copilot AI review requested due to automatic review settings January 22, 2026 11:55
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request updates the default XBlock title to align with the default game type and improves flashcard styling for better visual consistency and emphasis.

Changes:

  • Changed default XBlock title from "Matching" to "Flashcards" to match the default game type
  • Increased font-weight from 600 to 700 for flashcard titles to improve emphasis
  • Added text-align: center and additional font properties to flashcards-start-title for better alignment and consistency
  • Version bump from 1.0.9 to 1.0.10

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
setup.py Bumped version from 1.0.9 to 1.0.10 to reflect this bug fix and style improvement
games/static/css/flashcards.css Enhanced flashcard styling with bolder title font-weight and centered alignment with explicit font properties for the start screen title
games/games.py Changed default title from MATCHING_TITLE to FLASHCARDS_TITLE to align with the default game type of flashcards

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

.flashcards-start-title {
color: var(--primary-500, #00262B);
text-align: center;
font-family: Inter;
Copy link

Copilot AI Jan 22, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The font-family 'Inter' is already specified on the parent element '.gamesxblock-flashcards' at line 2, so this redundant declaration can be removed. Child elements inherit the font-family from their parent unless explicitly overridden.

Suggested change
font-family: Inter;

Copilot uses AI. Check for mistakes.
text-align: center;
font-family: Inter;
font-size: 20px;
font-style: normal;
Copy link

Copilot AI Jan 22, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The 'font-style: normal' declaration is unnecessary as 'normal' is already the default value for font-style. This property only needs to be explicitly set when you want italic or oblique styles.

Suggested change
font-style: normal;

Copilot uses AI. Check for mistakes.

title = String(
default=DEFAULT.MATCHING_TITLE,
default=DEFAULT.FLASHCARDS_TITLE,
Copy link

Copilot AI Jan 22, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The default title has been changed from DEFAULT.MATCHING_TITLE to DEFAULT.FLASHCARDS_TITLE. This change aligns the default title with the default game type (which is flashcards), but it will break the existing test in tests/test_games.py at line 58 which expects 'default_block.title == DEFAULT.MATCHING_TITLE'. The test assertion needs to be updated to 'assert default_block.title == DEFAULT.FLASHCARDS_TITLE' to reflect this change.

Copilot uses AI. Check for mistakes.
@djoseph-apphelix djoseph-apphelix merged commit 5cfac4e into main Jan 23, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants